diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-29 10:20:08 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-29 10:20:08 -0700 |
commit | 754d1cef7ba30d1df8fbc8e1a9612d67d5a8aa99 (patch) | |
tree | 071274fc0cf91a37b6690384283b360a95814238 /src/Text/Pandoc/Readers | |
parent | 457fbebabc4b3556ff154907385dfd9f993744ac (diff) | |
download | pandoc-754d1cef7ba30d1df8fbc8e1a9612d67d5a8aa99.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-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 b6f67ee58..411369a05 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -824,7 +824,7 @@ inlineText :: LP Inlines inlineText = str <$> many1 inlineChar inlineChar :: LP Char -inlineChar = noneOf "\\$%^_&~#{}^'`\"‘’“”-[] \t\n" +inlineChar = noneOf "\\$%&~#{}^'`\"‘’“”-[] \t\n" environment :: LP Blocks environment = do |