Ugly pipe table output
Opened this issue · 0 comments
Mathnerd314 commented
As mentioned in the user guide there are "ugly" pipe tables, like:
fruit|price
---|---
apple|2.05
pear|1.37
orange|3.09
As an option I would like to have Pandoc output these "ugly" pipe tables, i.e. skip the width calculation, use three dashes for each column in the table header, and just output the pipe character or else pipe plus spaces like apple | 2.05
for each row.
Ugly pipe tables are the easiest format to edit and maintain by hand, compared to prettier variants.
Describe alternatives you've considered.
There is the sedscript s/ \+| \+/ | /g; s/ \+| \+/ | /g; s/|----\+|/|---|/g; s/|----\+|/|---|/g; s/ \+|$/ |/g
, but it is a bit messy compared to a built-in option.