X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/9777b1b01cb571ad1f698f9476d08f2873e471b8..ed7a25f2bc4c9a9e6cc90922f18bfabd675a24f6:/.mutt/htmldump diff --git a/.mutt/htmldump b/.mutt/htmldump index 906bd6d..f5718e8 100755 --- a/.mutt/htmldump +++ b/.mutt/htmldump @@ -27,6 +27,11 @@ if command -v html2markdown >/dev/null; then --decode-errors=replace --images-to-alt - "$2"| \ sed -re 's,^\\--[[:space:]]+$,-- ,' +elif command -v pandoc >/dev/null; then + + exec iconv -f "$2" -t utf-8 | pandoc -s -f html -t markdown_mmd \ + --columns=$WIDTH + elif command -v elinks >/dev/null; then exec elinks -anonymous -localhost -eval "set document.codepage.assume = '$2'" \