5

I'm using Maruku, to convert from Markdown (superset) to HTML, do you know how can I do to convert from HTML to Markdown?

Claudio Acciaresi
  • 30,072
  • 5
  • 31
  • 41
  • Use XSLT: http://stackoverflow.com/questions/59557/html-to-markdown-with-java – Josh Lee Nov 17 '09 at 20:50
  • I haven't tried it, and it is likely not as good as one of the dedicated options, but there's also the kramdown gem. It can take HTML as an input, and it can generate markdown as an output (as well as the reverse). – iconoclast Jan 13 '16 at 19:39

2 Answers2

11

Google found a ruby script called reverse_markdown. It seems to do what you are looking for.

Jonathan Leffler
  • 666,971
  • 126
  • 813
  • 1,185
mtyaka
  • 8,246
  • 1
  • 35
  • 40
1

try html2markdown http://rubygems.org/gems/html2markdown

And now, I found http://markitdown.medusis.com/ is very useful and quick.

alswl
  • 885
  • 8
  • 11