Permitir HTML en artículos

This commit is contained in:
Cat /dev/Nulo 2021-10-11 16:10:22 -03:00
parent 20734fcb66
commit 8bb3e76073

View file

@ -32,7 +32,7 @@ for file in *.md; do
title="$(basename "$file" .md)"
outfile="$outdir/$title.html"
template "$title" "$file" > "$outfile"
cmark "$file" >> "$outfile"
cmark --unsafe "$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"