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:
parent
ab5dda7a60
commit
9681574661
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue