Closed varac closed 1 day ago
Just found out that miller also had this problem and they fixed it with backslahing the pipe: https://github.com/johnkerl/miller/pull/691
Hi, @varac! Thanks for this issue, seems reasonable. Will try to fix it this week.
Thanks !!
Problem
Given a table with a pipe symbol (
|
) in an item, glow wrongly splits the item into pieces seperated by the pipe symbol. This messes up the table when it is post-rendered by other markdown tools (i.e. glow).Steps to reproduce:
See the wrongly formatted line 2 of the table in the last command output (glow):
Solution
Please properly escape pipe symbols (
|
) in csv items, as the Markdownguide: Escaping Pipe Characters in ables proposes:Escaping with a backslash (
\|
) also works, and it much more readabled, so this might be the preferred solution.