3 ms·
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
by mcny 9mo 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?
- duskdozer 9mo agoIt can, the gripe that I don't have a good solution for is what happens when entry 3 is a 7-letter name?
- akshitgaur2005 9mo agoyou switch to org!
- zdc1 9mo agoThen 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.
- bobbylarrybobby 9mo agoA 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.
- Groxx 9mo agoI'm not aware of any table-capable markdown renderer that requires tables to be padded correctly. It's purely a source-text-readability concern. No doubt some janky one exists somewhere, but nobody uses that.
- eastbound 9mo agoIntelliJ repads the tables automatically when cells get bigger. I think you can even resize using the mouse!
- rconti 9mo agoHonestly, updating tables in markdown has been my most successful use of AI :)
- huimang 9mo agoWith LSP and Marksman [0], those tables get formatted automatically on save for me. https://github.com/artempyanykh/marksman https://github.com/artempyanykh/marksman