summaryrefslogtreecommitdiff
path: root/mutt/.mutt/filter
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-12-03 11:52:48 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-12-03 11:52:48 +0100
commit264b48ff259714217ed0c056a99d038dde872249 (patch)
treea53b29cbdcb898f056d898a2289e36b46c8e98c5 /mutt/.mutt/filter
parentbcd3e89a1144f23a95f11e0243fedb2b7c1eaab9 (diff)
Increase tmux scrollback
Diffstat (limited to 'mutt/.mutt/filter')
-rwxr-xr-xmutt/.mutt/filter5
1 files changed, 5 insertions, 0 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"