blob: b6206d7bd398178a4b9ebb75ddf5e9b36e4162b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
usage="Usage: $0 url"
test $# -ne 1 && echo "$usage" && exit 1
t=`mktemp -d` || exit 1
cd "$t"
f=`basename "$1"`
d=`dirname "$1"`
curl -L -s -S "$1" | iconv -t utf-8//ignore | pandoc --no-wrap -f html -t markdown > "$f"
pull-images "$f" "$d"
tkread -m < "$f"
rm -rf "$t"
|