Although implementations usually get this wrong, Markdown is supposed
to be an extension of HTML; that is, any HTML document is also a
Markdown document. Consequently, you can use cat(1) to convert.
cat webpage.html > webpage.md
You likely want also to remove some of the HTML tags and use the
Markdown equivalents. This going to suck no matter how you do it because
HTML is involved.
But at least it is pretty short if you use an HTML parser.
Attached is a demonstration in CSS.
Received on Mon Jan 07 2019 - 01:35:49 CET