Skip to content

Markavian/html-table-to-markdown-converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

html-table-to-markdown-converter

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

Latest release

1.0.0

See:

Example

Sample HTML input taken from Chrome Right Click > Inspect.

<table>
<thead>
<tr>
  <th>Heading</th>
  <th>Verified</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Row 1</td>
  <td>Yes</td>
</tr>
<tr>
  <td>Row 2</td>
  <td>No</td>
</tr>
<tr>
  <td>Row 3</td>
  <td>Maybe</td>
</tr>
</tbody>
</table>

Output:

| Heading | Verified |
| --- | --- |
| Row 1 | Yes |
| Row 2 | No |
| Row 3 | Maybe |

Output rendered as markdown:

Heading Verified
Row 1 Yes
Row 2 No
Row 3 Maybe

Wishlist

  • Pretty format the output
  • Provide option to remove the opening | for multi-column tables

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%