diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-07-20 11:36:50 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-07-20 11:36:50 -0700 |
commit | 34533dd8d19ee8e420fddb5c3aeba99cfc326947 (patch) | |
tree | 114b6579db07120425718151c663ae1fc391f2eb | |
parent | 1b6c9733eeda3f4d3486b90f4712d9e6d3a4624b (diff) | |
download | pandoc-34533dd8d19ee8e420fddb5c3aeba99cfc326947.tar.gz |
LaTeX reader: be more forgiving of non-standard characters.
E.g. `^` outside of math. Some custom environments give
these a meaning, so we should try not to fall over when we
encounter them.
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index dc460684e..10e2b9833 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -232,7 +232,7 @@ inline = (mempty <$ comment) <|> (guardEnabled Ext_literate_haskell *> char '|' *> doLHSverb) <|> (str . (:[]) <$> tildeEscape) <|> (str . (:[]) <$> oneOf "[]") - <|> (str . (:[]) <$> oneOf "#&") -- TODO print warning? + <|> (str . (:[]) <$> oneOf "#&~^'`\"[]") -- TODO print warning? -- <|> (str <$> count 1 (satisfy (\c -> c /= '\\' && c /='\n' && c /='}' && c /='{'))) -- eat random leftover characters inlines :: LP Inlines |