Markdown table to HTML
Sometimes you need the table as markup rather than as Markdown: a CMS field, an email template, a page that does not run a Markdown parser. This emits a plain table with a proper thead and tbody, alignment carried over from the colons in the delimiter row, and any HTML in your cells escaped rather than injected.
format
how to use it
- 01Paste Markdown containing a table.
- 02Edit any cells in the grid.
- 03Copy the HTML into your page or template.
questions
- Is content in my cells escaped?
- Yes. Angle brackets, ampersands and quotes are converted to entities, so a cell containing a script tag renders as text instead of running.
- How is alignment carried over?
- The colons in the Markdown delimiter row become inline text-align styles on the matching cells.
- Is any CSS included?
- No. The markup is bare so it inherits your own styles rather than fighting them.