Comment by mcny
2 days ago
Sorry but I don't understand
Isn't this a table?
|sn|name|
|--|--|
|1|George|
|2|John|
I feel like I've been doing this at least since about 2013?
Edit: I get it now. It was not a part of the original spec.
|sn|name |
|--|------|
| 1|George|
| 2|John |
It can look better if we use fixed width font and add padding I guess?
It can, the gripe that I don't have a good solution for is what happens when entry 3 is a 7-letter name?
Then you need to re-pad everything (clean looking git diff be damned). It's just the reality of dealing with bounding boxes. Maybe we don't notice it in HTML and such since the browser redraws them for us for free.
A reasonable format would not insist you lay out tables visually any more than it would insist you center your headers if you'd like them horizontally centered when rendered. For instance, Asciidoctor has syntax for table cells that requires no whitespace and lets you put any content at all in a cell.
1 reply →
With LSP and Marksman [0], those tables get formatted automatically on save for me.
https://github.com/artempyanykh/marksman
IntelliJ repads the tables automatically when cells get bigger. I think you can even resize using the mouse!
you switch to org!
Honestly, updating tables in markdown has been my most successful use of AI :)