aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-28 08:38:42 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-28 08:41:53 -0800
commit3c93ac5cf0995cc2dd8bb5775029da550af61e0d (patch)
tree68066286569a2d73d8bc1b168db6fdc7fe8d1d2d /src/Text/Pandoc
parent2278cd5e772a9b8858b91c336c043a696480d25f (diff)
downloadpandoc-3c93ac5cf0995cc2dd8bb5775029da550af61e0d.tar.gz
LaTeX reader: be more tolerant of `&` character.
This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208.
Diffstat (limited to 'src/Text/Pandoc')
-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 6c5567ffd..e0972bb6c 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1726,7 +1726,7 @@ inline = (mempty <$ comment)
<|> (guardEnabled Ext_literate_haskell *> symbol '|' *> doLHSverb)
<|> (str . (:[]) <$> primEscape)
<|> regularSymbol
- <|> (do res <- symbolIn "#^'`\"[]"
+ <|> (do res <- symbolIn "#^'`\"[]&"
pos <- getPosition
let s = T.unpack (untoken res)
report $ ParsingUnescaped s pos