master
bel 2022-06-26 23:23:36 -06:00
parent df46dcdd9d
commit 28b9a82004
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ html_to_markdown() {
local f="$(mktemp)"
log url=$1
cat > "$f"
grep '<title>' "$f" | sed 's/.*>\([^<]*\)<.title>.*/\1/g' >&2
cat "$f" \
| readability "file://$(realpath $f)" \
| pandoc -f html -t markdown --ascii --toc --wrap=none --strip-comments -o - \