LaTeX reader: allow optional arguments after \\ in tables.
commit8a157ff83930d3a630168020a963a1ea08bfd6ae
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 18 Nov 2018, 23:40 (8 years ago)
parent681afbf
src/Text/Pandoc/Readers/LaTeX.hs+2−1
@@ -2119,7 +2119,8 @@ hline = try $ do
21192119 return ()
21202120
21212121lbreak :: PandocMonad m => LP m Tok
2122−lbreak = (controlSeq "\\" <|> controlSeq "tabularnewline") <* spaces
2122+lbreak = (controlSeq "\\" <|> controlSeq "tabularnewline")
2123+ <* skipopts <* spaces
21232124
21242125amp :: PandocMonad m => LP m Tok
21252126amp = symbol '&'