diff options
Diffstat (limited to 'mutt/.mutt/filter')
-rwxr-xr-x | mutt/.mutt/filter | 5 |
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" |