Skip to content

Ensure pipe tables #32

Answered by ickc
halloleo asked this question in Q&A
Discussion options

You must be logged in to vote

It's happening on the pandoc side.

pantable parses the CSV into pandoc's native AST, and pandoc decided what to do about it for different outout, including markdown.

In pandoc. there's 4 table syntaxes, where only the grid table supports everything the internal AST support. So if it figures out a certain feature cannot be represented as pipe table, then it will uses grid table for example. And one such feature is the column width, I think.

Another way to force pandoc to output pipe table is to turn off the other three table extensions, such as pandoc -t markdown-grid_table-.... But this has a side effect: if pandoc decide a table cannot be rendered as pipe table, it will choose the next a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ickc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #32 on December 12, 2020 03:17.