Automatically Convert HTML Tables to Markdown
Problem
Markdown tables are often tedious and time consuming to create. Some folks may have an existing HTML tables, or prefer to create tables natively with HTML, that they want to include in descriptions or comments.
Proposal
Similarly to how we automatically parse spreadsheet rows/columns into markdown tables, we should support converting HTML tables to Markdown tables when pasted from the clipboard.
Considerations
- There is a high probably that some folks want to retain the HTML table and not convert it to markdown. This would be a common use case when trying to paste a code snippet into a code block. We should handle this intelligently and gracefully for the end user.
Inspiration
- https://twitter.com/simonw/status/1259158575546417153 has a ton of information, including links to https://domchristie.github.io/turndown/ and https://euangoddard.github.io/clipboard2markdown/
Edited by 🤖 GitLab Bot 🤖