diff options
Diffstat (limited to 'mutt/filters/markdown-to-html.sh')
-rw-r--r-- | mutt/filters/markdown-to-html.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mutt/filters/markdown-to-html.sh b/mutt/filters/markdown-to-html.sh new file mode 100644 index 00000000..5fe28560 --- /dev/null +++ b/mutt/filters/markdown-to-html.sh @@ -0,0 +1,8 @@ +printf 'text/html\n\n' +sed 's/ $/ /;/[^ ]$/s/$/ /;s/^-- $/-- /' | +pandoc \ + --from markdown_strict+smart \ + --metadata=pagetitle:HTML \ + --standalone \ + --to html4 | +sed '/[—–][—–]/{s/—/---/g;s/–/--/g}' |