mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 09:55:57 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user