diff --git a/themes/v2/layouts/partials/gemtext.gmi b/themes/v2/layouts/partials/gemtext.gmi index 5b871b3..525f76d 100644 --- a/themes/v2/layouts/partials/gemtext.gmi +++ b/themes/v2/layouts/partials/gemtext.gmi @@ -3,10 +3,12 @@ {{ $content = $content | replaceRE `\n+` "" -}} {{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}} {{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}} -{{ $content = $content | replaceRE `=> (/.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}} -{{ $content = $content | replaceRE `(?m) >` ">" -}} +{{ $content = $content | replaceRE `\[([^\]]+)\]\([^\)]+\)` "$1" -}} +{{ $content = $content | replaceRE `(?m)^ >` ">" -}} {{ $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}} +{{ $content = $content | replaceRE `(?m)^- ` "* " -}} {{ $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}} +{{ $content = $content | replaceRE `=> (/.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}} {{ $audioRE := `` -}} {{ range findRE $audioRE $content -}} {{ $url := . | replaceRE $audioRE "$1" | replaceRE ` ` "%20" -}}