~gpanders/dotfiles

522bf043b9600b14301ab07a288bec9810bfd04a — Greg Anders a month ago afbd225
Add md2html.sh script for Mutt
1 files changed, 9 insertions(+), 0 deletions(-)

A .local/share/mutt/md2html.sh
A .local/share/mutt/md2html.sh => .local/share/mutt/md2html.sh +9 -0
@@ 0,0 1,9 @@
#!/bin/sh

# This script is used by Mutt's send_multipart_alternative_filter option to
# convert a plain text email into HTML and bundle it into a
# multipart/alternative format.

printf 'text/html\n\n'

{ cmark || pandoc -f commonmark -t html5 || markdown || exit 1 ; } 2>/dev/null