This commit is contained in:
bel
2022-06-26 23:23:36 -06:00
parent df46dcdd9d
commit 28b9a82004

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 - \