Link out for PDFs

This commit is contained in:
David Eisinger
2025-02-15 02:05:41 -05:00
parent 3aaf520a1c
commit ea0be970b9

View File

@@ -3,6 +3,7 @@
{{ $content = $content | replaceRE `<!--more-->\n+` "" -}} {{ $content = $content | replaceRE `<!--more-->\n+` "" -}}
{{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}} {{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}}
{{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}} {{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
{{ $content = $content | replaceRE `=> (/.+\.pdf)` "=> https://davideisinger.com$1"}}
{{ $content = $content | replaceRE `(?m)\n\n >` "\n\n>" -}} {{ $content = $content | replaceRE `(?m)\n\n >` "\n\n>" -}}
{{ $content = $content | replaceRE `(?m)\n\n ([A-Z])` " $1" -}} {{ $content = $content | replaceRE `(?m)\n\n ([A-Z])` " $1" -}}
{{ $audioRE := `<audio controls src="(.*/([^"]+))"></audio>` }} {{ $audioRE := `<audio controls src="(.*/([^"]+))"></audio>` }}