pandoc --filter pandoc-placetable -t markdown
Am Freitag, 20. Mai 2016 11:39:02 UTC+2 schrieb Martin Fenner:
Dear group,The topic of CSV support in Pandoc has come up several times on this list, includes this thread from 2014:Since last year I work for an organisation that frequently deals with tabular data (and helped organize CSVconf earlier this month), and I have done some thinking on how CSV could fit into Pandoc.Are you aware of these two Pandoc filters?
- pandoc-csv2table (https://github.com/baig/
pandoc-csv2table )- pandoc-placetable (https://
github.com/mb21/pandoc- )placetable Both “abuse” the fenced code block syntax, assign the class
.table
to the block and allow inline CSV data as well as referencing an external CSV file.Personally, I still prefer to use csv2table (over the newer placetable) because I can also use it to convert CSV to Markdown tables (grid, simple and multiline) — which *placetable” currently doesn’t do because it works differently (AFAIU):
- placetable converts CSV to Pandoc’s native format directly
- csv2table converts CSV to Markdown first.