diff --git a/build.sh b/build.sh index 6982c3e..5ba894d 100755 --- a/build.sh +++ b/build.sh @@ -18,6 +18,13 @@ template () { fi } +markdown () { + # TODO: hacky + cmark --unsafe "$1" \ + | sed "s/\1<\/a>/g' +} + outdir=build mkdir -p $outdir # Autocopiarnos :) @@ -25,7 +32,7 @@ cp ./*.sh ./*.md ./*.css ./*.png ./*.mp4 "$outdir" index="$outdir/index.html" inicio=true header=false template "nulo.in" > "$index" -cmark --unsafe index.md >> "$index" +markdown index.md >> "$index" echo "

Lista de páginas