Parsear [[links]]
This commit is contained in:
parent
93e423bf4b
commit
fe7f4644ae
1 changed files with 1 additions and 0 deletions
1
build.sh
1
build.sh
|
@ -34,6 +34,7 @@ for file in *.md; do
|
||||||
cmark "$file" >> "$outfile"
|
cmark "$file" >> "$outfile"
|
||||||
# TODO: hacky
|
# TODO: hacky
|
||||||
sed -i "s/<a /<a rel='noopener noreferrer' /gi" "$outfile"
|
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"
|
echo -n "<li><a href='$title.html'>$title</a></li>" >> "$index"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Reference in a new issue