Nice up pandoc-html thing

Fri, 28 Apr 2017 15:00:20 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 28 Apr 2017 15:00:20 -0400
changeset 552
1a131edec257
parent 551
bc4d3229cff1
child 553
3f1c2badefc5

Nice up pandoc-html thing

.muttrc file | annotate | diff | comparison | revisions
bin/mutt-md2html file | annotate | diff | comparison | revisions
--- a/.muttrc
+++ b/.muttrc
@@ -89,7 +89,7 @@ macro index,pager    \Cb "<pipe-message>
 macro attach,compose \Cb "<pipe-entry> urlscan<enter>" 'urlscan'
 
 # Turn a text/plain markdown part into text/html
-macro compose \eh "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n" 'htmlify'
+macro compose \eh "F mutt-md2html \ny^T^Utext/html\n" 'htmlify'
 
 push <first-entry>
 
new file mode 100755
--- /dev/null
+++ b/bin/mutt-md2html
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec pandoc -sS --self-contained --highlight-style=monochrome -f markdown -t html5 $*

mercurial