KingRial / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

How to convert HTML back to markdown? #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have successfully setup pagedown on a site I am using, but I have run into an 
issue when trying to edit HTML that has already been created.  I would like to 
take a HTML chunk that was created using pagedown, convert it back to markdown 
and place it in the editor.

I looked around but didn't see this covered in the documentation.  I took a 
look in the Markdown.Editor.js file to see if there was a makeMarkdown function 
to match the makeHTML function but I didn't see anything.

How do I go about converting HTML back to markdown for editing?

Original issue reported on code.google.com by abemiess...@gmail.com on 2 Apr 2014 at 5:46

GoogleCodeExporter commented 9 years ago
Pagedown doesn't offer this functionality. There are projects out there that do 
this, but there's of course no round-tripping guarantee (because that's 
impossible).

Original comment by b...@stackoverflow.com on 11 Apr 2014 at 7:58