You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a div surround a table that pandoc will write as a grid table in markdown creates invalid pandoc markdown, as reading that markdown back into pandoc causes the table to not be recognised as a table.
table-test.txt is a grid table in hand-written markdown.
Running the command pandoc --from=markdown+smart --to=native < table-test.txt | pandoc --from=native --to=markdown+smart produces a grid table surrounded by native markdown div markers, ::: {.div-class} and :::.
Examining the AST by running pandoc --from=markdown+smart --to=native shows that the table was not interpreted as a table but as plain text.
The text was updated successfully, but these errors were encountered:
Sorry for the roundabout series of commands, you are exactly right that is what is produced.
The problem arises when that table is fed back into pandoc as it is no longer recognised as a table, just a paragraph in a div.
Pandoc version: 2.9.2.1
Having a div surround a table that pandoc will write as a grid table in markdown creates invalid pandoc markdown, as reading that markdown back into pandoc causes the table to not be recognised as a table.
table-test.txt is a grid table in hand-written markdown.
Running the command
pandoc --from=markdown+smart --to=native < table-test.txt | pandoc --from=native --to=markdown+smart
produces a grid table surrounded by native markdown div markers,::: {.div-class}
and:::
.Examining the AST by running
pandoc --from=markdown+smart --to=native
shows that the table was not interpreted as a table but as plain text.The text was updated successfully, but these errors were encountered: