From 457fbebabc4b3556ff154907385dfd9f993744ac Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 29 Jun 2015 09:46:57 -0700 Subject: LaTeX reader: don't parse `_`,`^` as super/sub outside math mode. --- src/Text/Pandoc/Readers/LaTeX.hs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 408a05cdf..b6f67ee58 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -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 "[]") -- cgit v1.2.3