Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugly pipe table output #10453

Open
Mathnerd314 opened this issue Dec 11, 2024 · 0 comments
Open

Ugly pipe table output #10453

Mathnerd314 opened this issue Dec 11, 2024 · 0 comments

Comments

@Mathnerd314
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant