Parsear [[links]]

This commit is contained in:
Cat /dev/Nulo 2021-10-08 20:48:29 -03:00
parent 93e423bf4b
commit fe7f4644ae

View file

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