LaTeX reader: don't parse _,^ as super/sub outside math mode.

This commit is contained in:
John MacFarlane
2015-06-29 09:46:57 -07:00
parent d0ed2560ab
commit 457fbebabc
-2
View File
@@ -200,8 +200,6 @@ inline = (mempty <$ comment)
<|> (str "\160" <$ char '~')
<|> mathDisplay (string "$$" *> mathChars <* string "$$")
<|> mathInline (char '$' *> mathChars <* char '$')
<|> try (superscript <$> (char '^' *> tok))
<|> (subscript <$> (char '_' *> tok))
<|> (guardEnabled Ext_literate_haskell *> char '|' *> doLHSverb)
<|> (str . (:[]) <$> tildeEscape)
<|> (str . (:[]) <$> oneOf "[]")