aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-05 16:13:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-05 16:13:35 -0800
commit06d3071090e6b1d636e1575070a74e6d419587f2 (patch)
treeb3d70951a0c8e5ce2e66cdee915be1876f84308c /src
parent391f6e5f803c6c9b5a0bbf998bf8cc0e0809e4b3 (diff)
downloadpandoc-06d3071090e6b1d636e1575070a74e6d419587f2.tar.gz
LaTeX reader: better handling of `\\` inside math in table cells.
Previously this confused the table parser. Closes #6811.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 5e46caedb..38e2435e3 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -2168,6 +2168,8 @@ parseTableRow envname prefsufs = do
contents <- mconcat <$>
many ( snd <$> withRaw (controlSeq "parbox" >> parbox) -- #5711
<|>
+ snd <$> withRaw (inlineEnvironment <|> dollarsMath)
+ <|>
(do notFollowedBy
(() <$ amp <|> () <$ lbreak <|> end_ envname)
count 1 anyTok) )