3 ms·
Tables are markdown's weakest point. The pipe syntax is painful to write and impossible to maintain once a cell has more than a few words. An excel style approa
by unmarkdown 8mo ago
Tables are markdown's weakest point. The pipe syntax is painful to write and impossible to maintain once a cell has more than a few words. An excel style approach makes a lot of sense for that.
One thing I've found tricky is the round-trip: editing a table visually and converting it back to clean markdown without the alignment breaking. How are you handling that ... regenerating the pipes and padding on every edit or storing some intermediate state?
- heckifIknow 7mo agoYea, I ran into the same issue. It's not storing the formatted markdown but rather using the intermediate grid state. So markdown is always regenerated rather than edited in place. Basically, it just recalculate column widths and regenerate the pipes and padding each time. Alignment is stored separately (parsed from the separator row on import), so it’s reapplied when generating the markdown.