aboutsummaryrefslogtreecommitdiff
path: root/mutt/filters/markdown-to-html.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mutt/filters/markdown-to-html.sh')
-rw-r--r--mutt/filters/markdown-to-html.sh7
1 files changed, 7 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..cdba8ace
--- /dev/null
+++ b/mutt/filters/markdown-to-html.sh
@@ -0,0 +1,7 @@
+printf 'text/html\n\n'
+sed 's/ $/ /;/[^ ]$/s/$/ /;s/^-- $/-- /' |
+pandoc \
+ --from markdown_strict+smart \
+ --metadata=pagetitle:HTML \
+ --standalone \
+ --to html4