From 2929801eb8f8764f59f548e9819a99a9841f7530 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Tue, 4 Mar 2025 10:02:14 -0500 Subject: [PATCH] Strip abbrs from Gemini --- themes/v2/layouts/partials/gemtext.gmi | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/v2/layouts/partials/gemtext.gmi b/themes/v2/layouts/partials/gemtext.gmi index fe1d377..480cc60 100644 --- 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 `]*>([^<]+)` "$1" -}} {{- $content = $content | replaceRE `\n+$` "" }} {{- $content | safeHTML -}}