Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there javascript to convert HTML to markdown? [closed]

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?

like image 901
Ethan Avatar asked Apr 20 '10 01:04

Ethan


People also ask

Can I 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.

Can Pandoc convert HTML to 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.


2 Answers

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.

like image 150
Dom Christie Avatar answered Sep 19 '22 21:09

Dom Christie


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.

like image 37
himanshu Avatar answered Sep 18 '22 21:09

himanshu