diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-05 16:13:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-05 16:13:35 -0800 |
commit | 06d3071090e6b1d636e1575070a74e6d419587f2 (patch) | |
tree | b3d70951a0c8e5ce2e66cdee915be1876f84308c /src | |
parent | 391f6e5f803c6c9b5a0bbf998bf8cc0e0809e4b3 (diff) | |
download | pandoc-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.hs | 2 |
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) ) |