There is showdown.js to convert markdown to HTML, and PHP Markdown to convert markdown to and from HTML. My question is, is there javascript library to convert HTML to markdown?
World's simplest online HTML to Markdown transformer for web developers and programmers. Just paste your HTML in the form below, press the Convert to Markdown button, and you'll get Markdown. Press a button – get Markdown.
Pandoc can convert between numerous markup and word processing formats, including, but not limited to, various flavors of Markdown, HTML, LaTeX and Word docx.
I've started a project to do this:
https://github.com/domchristie/turndown
It's still in its early stages, so has not been heavily tested, but it's a start.
Feedback/contributions welcome.
I have also collaborated on a project on github that does this. At this moment, it is only tested in browser.
html2markdown
I have done a lot of testing on web. Added ton of unit tests. Still not perfect but works nicely. Feedback welcome and I will be happy to receive pull requests or fix any defects you find.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With