Permitir HTML en artículos
This commit is contained in:
parent
20734fcb66
commit
8bb3e76073
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -32,7 +32,7 @@ for file in *.md; do
|
||||||
title="$(basename "$file" .md)"
|
title="$(basename "$file" .md)"
|
||||||
outfile="$outdir/$title.html"
|
outfile="$outdir/$title.html"
|
||||||
template "$title" "$file" > "$outfile"
|
template "$title" "$file" > "$outfile"
|
||||||
cmark "$file" >> "$outfile"
|
cmark --unsafe "$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"
|
sed -i 's/\[\[\(.*\)\]\]/<a href="\1.html">\1<\/a>/g' "$outfile"
|
||||||
|
|
Reference in a new issue