Reputation: 6255
Is there any way to transform HTML into Markdown text?
<p>
elements inside.<img src='images/symbol_minus.gif' width='9' height='3' alt='−' border='0' style='vertical-align:middle;' />
which is just a minus sign - I want to replace them with text.Nokogiri::XML::Element#text
is almost something that I want, but it strips off images.
Upvotes: 2
Views: 1662
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