guntrip / table-magic

Converts between CSV, HTML and Markdown. Has a little form editor and a preview.
http://stevecat.net/table-magic/
MIT License
416 stars 38 forks source link

Support row headers #37

Open streats opened 1 year ago

streats commented 1 year ago

Would be great to be able to specify row headers, particularly for HTML (not sure this is natively supported in Markdown, for example). Perhaps a toggle of "Enable row headers" which makes all rows in the first column marked as <th>

guntrip commented 1 year ago

Ooh, that's a good idea. Currently table-magic will automatically set the first row to <thead> and <th> to match how this would be displayed on GitHub.

I'll look at adding a toggle, like you suggest, as not everyone may need row headers.

streats commented 1 year ago

Ooh, didn't realise it does mark it up that way automatically - smart 👀