You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess is that either (a) there's some kind of existing "style"/renderer for Markdown or (b) you could tune options like setDefaultCrossingChar('|') to make a Markdown-friendly layout. The main thing to look out for is line-wrapping data -- iirc, Markdown's text doesn't really allow wrapping. This would be a colorful demonstration where I think they diverge:
If there's a format that handles newlines suitably for both text-console and Markdown-renderers, then change the current table output to use that.
Tweak the current the output to be closer to Markdown in the average case (single-line content) and accept that some output won't transfer over to *.md.
Provide an alternate output (--out=md) optimized for Markdown. (This might allow for other adaptations, like backtick escaping?)
What would it take for the table output to be compatible with markdown? That seems like a more useful format?
Currently the table output looks like this:
Which is nice-looking ascii art, but when you paste it into GitLab, GitHub or any other type of markdown document, it looks like this:
+-------+----------------+----------------+
| value | name | label |
+-------+----------------+----------------+
| 1 | Completed | Completed |
| 2 | Pending | Pending |
| 3 | Cancelled | Cancelled |
| 4 | Failed | Failed |
| 7 | Refunded | Refunded |
| 8 | Partially paid | Partially paid |
| 9 | Pending refund | Pending refund |
| 10 | Chargeback | Chargeback |
| 11 | Template | Template |
+-------+----------------+----------------+
The text was updated successfully, but these errors were encountered: