From ed7a25f2bc4c9a9e6cc90922f18bfabd675a24f6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 1 Nov 2019 12:23:30 +1300 Subject: [PATCH 1/1] add pandoc as htmldumper --- .mutt/htmldump | 5 +++++ 1 file changed, 5 insertions(+) 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'" \ -- 2.39.2