From 3e570d9d8cce90b15c8f348b9f80f0accdf3446f1dab76077a0099d5494dc89c Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 30 Apr 2022 00:00:00 +0000 Subject: Use safeHTML for Gemini templates to prevent HTML escaping --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/single.gmi') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 9681f92..9dfb215 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -3,4 +3,4 @@ {{ $content := .RawContent }} {{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $2 $1" }} -{{- $content }}{{ end }} +{{- $content | safeHTML }}{{ end }} -- cgit v1.2.3