Parsear [[links]]

zigificación
Cat /dev/Nulo 2 years ago
parent 93e423bf4b
commit fe7f4644ae

@ -34,6 +34,7 @@ for file in *.md; do
cmark "$file" >> "$outfile"
# TODO: hacky
sed -i "s/<a /<a rel='noopener noreferrer' /gi" "$outfile"
sed -i 's/\[\[\(.*\)\]\]/<a href="\1.html">\1<\/a>/g' "$outfile"
echo -n "<li><a href='$title.html'>$title</a></li>" >> "$index"
done

Loading…
Cancel
Save