/html-table-to-markdown-converter

Converts HTML tables to Markdown. Paste in, click Convert.

Primary LanguageJavaScript

Converts HTML Tables to Markdown.

Paste in the raw HTML for the table you want to convert, e.g.:

<table>
  <tr><th>One</th><th>Two</th><th>Three</th></tr>
  <tr><td>Apples</td><td>Oranges</td><td>Pears</td></tr>
  <tr><td>Cakes</td><td>Donuts</td><td>Sweet Bread</td></tr>
</table>

Produces something like:

| One    | Two     | Three       |
| ------ | ------- | ----------- |
| Apples | Oranges | Pears       |
| Cakes  | Donuts  | Sweet Bread |

Demo: https://cdn.rawgit.com/johnbeech/html-table-to-markdown-converter/master/table-converter.html