summaryrefslogtreecommitdiff
path: root/mutt/.mutt
diff options
context:
space:
mode:
Diffstat (limited to 'mutt/.mutt')
-rwxr-xr-xmutt/.mutt/filter5
-rw-r--r--mutt/.mutt/muttrc2
2 files changed, 6 insertions, 1 deletions
diff --git a/mutt/.mutt/filter b/mutt/.mutt/filter
new file mode 100755
index 0000000..dcf5600
--- /dev/null
+++ b/mutt/.mutt/filter
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+TEXT=$(cat)
+HTML=$(pandoc -s -f markdown -t html --webtex -H "$HOME"/.mutt/pandoc.html <<< "$TEXT")
+sed 's/<br \/>\(.*\)<br \/>/<span class="math display">\1<\/span>/g' <<< "$HTML"
diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc
index f78b7cb..1595175 100644
--- a/mutt/.mutt/muttrc
+++ b/mutt/.mutt/muttrc
@@ -100,4 +100,4 @@ set reverse_name
alternates ".*@vaes.uk"
# HTML email
-macro compose 5 "$HOME/.mutt/filter\ny^T^Utext/html; charset=utf-8\n"
+macro compose 5 "F $HOME/.mutt/filter\ny^T^Utext/html; charset=utf-8\n"