commit 2929801eb8f8764f59f548e9819a99a9841f7530
parent 1fcee35992945ff83b45f1720a7246c0bdd76174
Author: David Eisinger <[email protected]>
Date: Tue, 4 Mar 2025 10:02:14 -0500
Strip abbrs from Gemini
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/themes/v2/layouts/partials/gemtext.gmi b/themes/v2/layouts/partials/gemtext.gmi
@@ -55,6 +55,7 @@
{{- $content = $content | replaceRE `=> /(elsewhere[^ ])` (printf "=> %s$1" site.BaseURL) -}}
{{- $content = $content | replaceRE `(?m)^(\* [^\n]+)\n\n ` "$1 " -}}
{{- $content = $content | replaceRE `(?m)\n{3,}` "\n\n" }}
+{{- $content = $content | replaceRE `<abbr[^>]*>([^<]+)</abbr>` "$1" -}}
{{- $content = $content | replaceRE `\n+$` "" }}
{{- $content | safeHTML -}}