diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-29 09:46:57 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-29 09:46:57 -0700 |
commit | 457fbebabc4b3556ff154907385dfd9f993744ac (patch) | |
tree | fe16f014fa556922f7b24992f147969ea4d3534d /src/Text/Pandoc/Readers | |
parent | d0ed2560ab7cd0960bc0245f633ed40f3939c6f1 (diff) | |
download | pandoc-457fbebabc4b3556ff154907385dfd9f993744ac.tar.gz |
LaTeX reader: don't parse `_`,`^` as super/sub outside math mode.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
1 files changed, 0 insertions, 2 deletions
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 "[]") |