LaTeX reader: Allow _ and ^ as regular inline text.

Normally these will cause an error in LaTeX, but there
are contexts (e.g. `alltt` environments) where they are
okay.  Now that we aren't treating them as super/subscript
outside of math mode, it seems okay to parse them as regular
text.
This commit is contained in:
John MacFarlane 2015-06-29 10:20:08 -07:00
parent 457fbebabc
commit 754d1cef7b

View file

@ -824,7 +824,7 @@ inlineText :: LP Inlines
inlineText = str <$> many1 inlineChar inlineText = str <$> many1 inlineChar
inlineChar :: LP Char inlineChar :: LP Char
inlineChar = noneOf "\\$%^_&~#{}^'`\"‘’“”-[] \t\n" inlineChar = noneOf "\\$%&~#{}^'`\"‘’“”-[] \t\n"
environment :: LP Blocks environment :: LP Blocks
environment = do environment = do