Use pandoc markdown

I figured out how lists work there ヽ( ゚ヮ・)ノ
This commit is contained in:
kageru 2020-04-02 18:28:54 +02:00
parent 2b6db33c40
commit ee42ef1c6f
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 -f gfm > "$outpath"
pandoc "$path" -t html -f markdown -o "$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)