X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/a9d9aacd8c08f103426d959d47060fab19e323d1..55c46a42d10868ec4625ee7a0afbd616bc3604cb:/.config/mutt/markdown2html 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('')