From b6209574ab89778dfa07ac4eaae4fbe0dde0c869 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 2 Nov 2022 23:09:43 +0000 Subject: [PATCH] Fix html rendering in shortcodes --- layouts/shortcodes/cs-module.html | 2 +- layouts/shortcodes/rver-fragment.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/cs-module.html b/layouts/shortcodes/cs-module.html index 89ea72ef..475ebd48 100644 --- a/layouts/shortcodes/cs-module.html +++ b/layouts/shortcodes/cs-module.html @@ -11,6 +11,6 @@ {{ with .Site.GetPage "client-server-api/modules" }} {{ with .Resources.GetMatch (printf "%s%s" $name ".md") }} - {{ .Content }} +{{ .Content }} {{ end }} {{ end }} diff --git a/layouts/shortcodes/rver-fragment.html b/layouts/shortcodes/rver-fragment.html index 2a69f9ea..a10be8b5 100644 --- a/layouts/shortcodes/rver-fragment.html +++ b/layouts/shortcodes/rver-fragment.html @@ -24,6 +24,6 @@ {{ $content = (replace $content "[New in this version]" "") }} {{ $content = (replace $content "[Changed in this version]" "") }} {{ end }} - {{ $content | safeHTML }} +{{ $content | safeHTML }} {{ end }} {{ end }}