How do I type a hyphen in iOS 12? You know, in SE markup language in the editor, a row of hyphens is useful.  You can either make a headline by putting a row of hyphens under a short line, or you can create a horizontal rule with a line of hyphens separated by white space.  

When I try that in iOS 12, I get this

———

Or this 

Headline
———

Note that I have hit "hyphen" six times and gotten 3 dashes.   And it does not work.  No horizontal rule (all the way across). No headline.

The problem is, they're not real hyphen-minuses from 7-bit ASCII.  They are some sort of typographical oddity - em space dash, en space dash, whatever.  I see I can also hold the hyphen key and it will give me the options for em space dash  and en space dash.  None are a hyphen!

How do I tape a plain ASCII hyphen-minus in iOS 12? 

I realize this is a bit of an XY, but I need plain hyphens for lots of other things too.  

Edit: Forgot to mention, I need to do this on other people's iPads, so it is not my purview to arbitrarily and permanently reconfigure their iPad to my tastes.  Besides I am not opposed to typographical features, I just need to use StackExchange from time to time.
Turning off Smart Punctuation (in Settings → General → Keyboard) allows me to type multiple hyphens without them being converted to em-dashes.

(Side note: here's a post by the creator of Markdown about this feature.)



As far as I can tell, this setting has two effects:


Change repeated hyphens to dashes
Change quotes and apostrophes to smart, locale-aware quotes (e.g., "" will become «» when the language is set to French).


These can't be toggled independently. The Apple help article for Numbers on iPad explicitly says:


  Numbers automatically converts double hyphens (--) to dashes (—) and
  converts straight quotation marks to curly quotation marks as you
  type. You can turn this setting off or on at any time.
  
  Note: The setting affects both hyphens and quotation marks—they’re
  both either off or on.
  
  [...]
  
  Tip: To use different formatting for specific text, change the
  setting, type the text, then change the setting back.


(Even though it says "Numbers automatically converts [...]," the setting is the same: Settings → General → Keyboard → Smart Punctuation. It's not specific to Numbers.)

This blog post suggests developers can turn this off selectively:


  A first step, if using a UITextInputTraits conforming control, would
  be to set smartQuotesType to UITextSmartQuotesTypeNo, and set
  smartDashesType to UITextSmartDashesTypeNo.




If it's only about Markdown, you don't need to change any settings. Alternate syntax is available for both headers and horizontal rules:

# Header 1
## Header 2

- - -
***
____


Gives:


  Header 1
  
  Header 2
  
  
  
  
  
  


That last uses underscores (_).