aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-29 10:20:08 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-29 10:20:08 -0700
commit754d1cef7ba30d1df8fbc8e1a9612d67d5a8aa99 (patch)
tree071274fc0cf91a37b6690384283b360a95814238 /src
parent457fbebabc4b3556ff154907385dfd9f993744ac (diff)
downloadpandoc-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')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
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