crawl converts md images to raw link

master
Bel LaPointe 2022-02-11 11:19:24 -07:00
parent 56325bc40e
commit 23807eebe9
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,10 @@ crawl_with() {
| sed 's/](\([^#h]\)/]\(%%%\1/g' | sed 's/](\([^#h]\)/]\(%%%\1/g'
)" )"
export CONTENT="${CONTENT//"%%%"/"${human_url%/*}/"}" export CONTENT="${CONTENT//"%%%"/"${human_url%/*}/"}"
export CONTENT="$(
printf "%s\n" "$CONTENT" \
| sed 's/!\[\([^]]*\)](\([^)]*\)\/-\/tree\/\([^)]*\))/![\1](\2\/-\/raw\/\3)/g'
)"
export ID="$( export ID="$(
local sum="$pid/" local sum="$pid/"
local title_so_far="" local title_so_far=""