use github flavored markdown

This commit is contained in:
kageru 2020-04-02 16:30:49 +02:00
parent cbf7ecbbab
commit 2946fb3c6d
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -17,7 +17,7 @@ create_entry() {
path="$9"
outpath="content/$(basename "$path" .md).html"
# convert new markdown posts to html
pandoc "$path" -t html > "$outpath"
pandoc "$path" -t html -f gfm > "$outpath"
# then add it to the index
title="$(rg 'h1' "$outpath" | head -n1 | rg -o '(?<=>).*(?=<)' --pcre2)"
created=$(git log --follow --format=%as "$path" | tail -1)