mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-16 12:35:36 +00:00
LaTeX reader: don't parse _,^ as super/sub outside math mode.
This commit is contained in:
@@ -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 "[]")
|
||||
|
||||
Reference in New Issue
Block a user