rsc / markdown

Basic Markdown parser and HTML generator
BSD 3-Clause "New" or "Revised" License
81 stars 4 forks source link

I'd like to get pretty-printed tables #16

Closed zacharysyoung closed 3 months ago

zacharysyoung commented 5 months ago

I like my tables to look something like:

| foo col | bar col | baz col |
| :------ | :-----: | ------: |
| 1       |    2    |       3 |
| a       |    b    |       c |

with each column's cells padded to fit the max width of that column and match the column's alignment.

I'll be doing a PR for this. Can mdfmt turn on the Table option in the parser by default, or with a flag?

rsc commented 3 months ago

Merged #17.