Use pandoc markdown
I figured out how lists work there ヽ( ゚ヮ・)ノ
This commit is contained in:
parent
2b6db33c40
commit
ee42ef1c6f
|
@ -17,7 +17,7 @@ create_entry() {
|
||||||
path="$9"
|
path="$9"
|
||||||
outpath="content/$(basename "$path" .md).html"
|
outpath="content/$(basename "$path" .md).html"
|
||||||
# convert new markdown posts to 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
|
# then add it to the index
|
||||||
title="$(rg 'h1' "$outpath" | head -n1 | rg -o '(?<=>).*(?=<)' --pcre2)"
|
title="$(rg 'h1' "$outpath" | head -n1 | rg -o '(?<=>).*(?=<)' --pcre2)"
|
||||||
created=$(git log --follow --format=%as "$path" | tail -1)
|
created=$(git log --follow --format=%as "$path" | tail -1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user