git.iko.soy/typeable/pandoc
on master help sign in
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.

commit34533dd8d19ee8e420fddb5c3aeba99cfc326947 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 20 Jul 2016, 11:36 (10 years ago) parent1b6c973
1 file changed+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -232,7 +232,7 @@ inline = (mempty <$ comment)
232232 <|> (guardEnabled Ext_literate_haskell *> char '|' *> doLHSverb)
233233 <|> (str . (:[]) <$> tildeEscape)
234234 <|> (str . (:[]) <$> oneOf "[]")
235− <|> (str . (:[]) <$> oneOf "#&") -- TODO print warning?
235+ <|> (str . (:[]) <$> oneOf "#&~^'`\"[]") -- TODO print warning?
236236 -- <|> (str <$> count 1 (satisfy (\c -> c /= '\\' && c /='\n' && c /='}' && c /='{'))) -- eat random leftover characters
237237
238238inlines :: LP Inlines