[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Markup in mail messages



On 17/05/2024 10:16, Karl Vogel wrote:
   https://github.com/aaronsw/html2text/ might interest you.  It converts
   (relatively) sane HTML into Markdown.

   I put html2text.py into $HOME/lib and use this to call it:

     #!/bin/sh
     #<html2mkd: convert reasonable HTML to Markdown
     exec /usr/bin/env python $HOME/lib/html2text.py ${1+"$@"}
     exit 1

I am puzzled by this wrapper. I expect that "$@" is enough here and namely {1+"$@"} is redundant. Am I wrong?

Another question is what is advantage of a decade old Python-2 script over the python3-html2text Debian package built (almost certainly) from its successor:
<https://alir3z4.github.io/html2text>



Reply to: