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.
This commit is contained in:
John MacFarlane 2014-06-03 23:17:42 -07:00
parent ab5dda7a60
commit 9681574661

View file

@ -1269,6 +1269,7 @@ simpTable = try $ do
header' <- option [] $ try (parseTableRow cols <* lbreak <* hline)
rows <- sepEndBy (parseTableRow cols) (lbreak <* optional hline)
spaces
skipMany (comment *> spaces)
let header'' = if null header'
then replicate cols mempty
else header'