From: martin f. krafft Date: Thu, 3 Feb 2022 06:14:46 +0000 (+0100) Subject: print signature preformatted X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/0f4107d72c08cf6d79447fd690f8d362d8fac916?ds=sidebyside print signature preformatted --- diff --git a/.config/mutt/markdown2html b/.config/mutt/markdown2html index 9db5ae9..2431bb8 100755 --- a/.config/mutt/markdown2html +++ b/.config/mutt/markdown2html @@ -111,7 +111,7 @@ def _preprocess_signature(sig): ''' Preprocess the signature before markdown processing. ''' - return sig + return f"```\n{sig}\n```" def _preprocess_markdown(mdwn): ''' @@ -311,6 +311,7 @@ def convert_markdown_to_html(mdwn): if sig: sig = _preprocess_signature(sig) sig = _preprocess_markdown(sig) + print(sig, file=sys.stderr, end='') sig = _convert_with_pandoc(sig, standalone=False, selfcontained=False) sig = SIGNATURE_HTML.format(sig=sig) eob = html.find('')