What is Nostr?
scy /
npub15pc…hvce
2024-04-24 16:34:26

scy on Nostr: I need to convert #HTML to #Markdown and I'm looking for a tool to do that. The ...

I need to convert #HTML to #Markdown and I'm looking for a tool to do that.

The output should

• preserve line breaks in paragraphs
• not contain additional, unnecessary linebreaks (e.g. 4 empty lines between paragraphs)
• be configurable (e.g. whether to use * or _ for emphasis, or * vs - for unordered lists)
• if possible, allow me to hook into details (e.g. to convert <pre class="shell"> to ```sh)

#Python or #CLI. Alternatively, what's a _really_ configurable prettifier?

#askFedi :BoostOK:
Author Public Key
npub15pc5vt5kqgr60g389gl4n5zzuktz8wezz76klym9ew3puy3p8clqckhvce