mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-26 01:15:53 +00:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user