Re:Show HN: CSS to render Markdown as unrendered Markdown
by ImJasonH on Friday April 10, 2015 @11:51AM
(#9355106)
I didn't have any real use cases in mind when I made it, I just wanted to see if it was possible.
In theory you could use it to demonstrate the underlying Markdown for some HTML, but unfortunately I haven't been able to figure out how to make the CSS ::before and ::after content user-selectable[0], so you wouldn't be able to copy it back out to make a simple HTML-to-Markdown converter.
Re:Show HN: CSS to render Markdown as unrendered Markdown
by leeoniya on Friday April 10, 2015 @12:03PM
(#9355191)
the table stuff doesnt work too well either, understandably. if you actually want to do conversion though, check out reMarked.js [1], disclaimer: mine. it's not too heavy, either.
In theory you could use it to demonstrate the underlying Markdown for some HTML, but unfortunately I haven't been able to figure out how to make the CSS ::before and ::after content user-selectable[0], so you wouldn't be able to copy it back out to make a simple HTML-to-Markdown converter.
[0] http://stackoverflow.com/questions/19914349/how-can-i-make-g...