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

Pipe characters are not escaped, breaking tables #7

Open
vadcx opened this issue Apr 22, 2023 · 0 comments
Open

Pipe characters are not escaped, breaking tables #7

vadcx opened this issue Apr 22, 2023 · 0 comments

Comments

@vadcx
Copy link

vadcx commented Apr 22, 2023

Input CSV (LibreOffice):

Header,HeaderC2,Header C3
Normal line,another,And the last
if (OK && GREAT),it works,as expected
If (ouch || bad),oopsie,doopsie

Output Markdown (mdtable input.csv > output.md)

| Header           | HeaderC2 | Header C3    |
| ---------------- | -------- | ------------ |
| Normal line      | another  | And the last |
| if (OK && GREAT) | it works | as expected  |
| If (ouch || bad) | oopsie   | doopsie      |

You can see the || characters are not escaped to \|\| thus producing a broken result (pasted below). I am not sure this is what was meant in #4. Simply escaping the characters as shown works on Github.

Header HeaderC2 Header C3
Normal line another And the last
if (OK && GREAT) it works as expected
If (ouch bad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant