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.
commit754d1cef7ba30d1df8fbc8e1a9612d67d5a8aa99
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 29 Jun 2015, 10:20 (11 years ago)
parent457fbeb
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -824,7 +824,7 @@ inlineText :: LP Inlines
824824inlineText = str <$> many1 inlineChar
825825
826826inlineChar :: LP Char
827−inlineChar = noneOf "\\$%^_&~#{}^'`\"‘’“”-[] \t\n"
827+inlineChar = noneOf "\\$%&~#{}^'`\"‘’“”-[] \t\n"
828828
829829environment :: LP Blocks
830830environment = do