DNNX
DNNX

Reputation: 6255

How to transform HTML to Markdown using Nokogiri?

Is there any way to transform HTML into Markdown text?

Nokogiri::XML::Element#text is almost something that I want, but it strips off images.

Upvotes: 2

Views: 1662

Answers (1)

DNNX
DNNX

Reputation: 6255

As @Konrads suggested, there is a duplicate entry here. However, the link which is given in the answer on that entry is broken.

I've googled a bit more and found that some forks survived: https://github.com/tomkrush/reverse-markdown, https://gist.github.com/788039.

If these forks become dead, just google for "reverse markdown". You will definitely find something that is alive and working.

Upvotes: 3

Related Questions