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