Re: [dev] suckless html to markdown (text)

From: Fischers Fritz <fischersfritz_AT_sent.at>
Date: Mon, 07 Jan 2019 00:35:49 +0000

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

This archive was generated by hypermail 2.3.0 : Mon Jan 07 2019 - 01:36:07 CET