git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: better handling of `\\` inside math in table cells.

Previously this confused the table parser. Closes #6811.

commit06d3071090e6b1d636e1575070a74e6d419587f2 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 5 Nov 2020, 16:13 (6 years ago) parent391f6e5
1 file changed+2
src/Text/Pandoc/Readers/LaTeX.hs+2
src/Text/Pandoc/Readers/LaTeX.hs+2
@@ -2167,6 +2167,8 @@ parseTableRow envname prefsufs = do
21672167 prefpos <- getPosition
21682168 contents <- mconcat <$>
21692169 many ( snd <$> withRaw (controlSeq "parbox" >> parbox) -- #5711
2170+ <|>
2171+ snd <$> withRaw (inlineEnvironment <|> dollarsMath)
21702172 <|>
21712173 (do notFollowedBy
21722174 (() <$ amp <|> () <$ lbreak <|> end_ envname)