LaTeX reader: Handle comments at the end of tables.
This resolves the issue illustrated in
http://stackoverflow.com/questions/24009489/comments-in-latex-break-pandoc-table.
commit96815746611d63fae7be718cce643a52effd6525
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 3 Jun 2014, 23:17 (12 years ago)
parentab5dda7
src/Text/Pandoc/Readers/LaTeX.hs+1
@@ -1269,6 +1269,7 @@ simpTable = try $ do
12691269 header' <- option [] $ try (parseTableRow cols <* lbreak <* hline)
12701270 rows <- sepEndBy (parseTableRow cols) (lbreak <* optional hline)
12711271 spaces
1272+ skipMany (comment *> spaces)
12721273 let header'' = if null header'
12731274 then replicate cols mempty
12741275 else header'