From 0f4107d72c08cf6d79447fd690f8d362d8fac916 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 3 Feb 2022 07:14:46 +0100 Subject: [PATCH 1/1] print signature preformatted --- .config/mutt/markdown2html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('') -- 2.39.5