From 06d3071090e6b1d636e1575070a74e6d419587f2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 5 Nov 2020 16:13:35 -0800 Subject: LaTeX reader: better handling of `\\` inside math in table cells. Previously this confused the table parser. Closes #6811. --- src/Text/Pandoc/Readers/LaTeX.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 @@ -2167,6 +2167,8 @@ parseTableRow envname prefsufs = do prefpos <- getPosition contents <- mconcat <$> many ( snd <$> withRaw (controlSeq "parbox" >> parbox) -- #5711 + <|> + snd <$> withRaw (inlineEnvironment <|> dollarsMath) <|> (do notFollowedBy (() <$ amp <|> () <$ lbreak <|> end_ envname) -- cgit v1.2.3