From ef83bd634c8fe974a7c8aaf26ef456b02b4e727a Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 27 May 2022 09:37:08 +0200 Subject: [PATCH] Update some shortcodes to use RenderString. --- layouts/shortcodes/details.html | 2 +- layouts/shortcodes/wrapper.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html index e308042..8aeb3c7 100644 --- a/layouts/shortcodes/details.html +++ b/layouts/shortcodes/details.html @@ -2,5 +2,5 @@ {{ $summary := .Get "summary" -}} {{ with $summary }}{{ . }}{{ end }} -{{ .Inner | markdownify }} +{{ .Inner | $.Page.RenderString (dict "display" "block") }} diff --git a/layouts/shortcodes/wrapper.html b/layouts/shortcodes/wrapper.html index 371f73c..4b1653e 100644 --- a/layouts/shortcodes/wrapper.html +++ b/layouts/shortcodes/wrapper.html @@ -1 +1 @@ -
{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | markdownify }}{{ end }}
+
{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | $.Page.RenderString (dict "display" "block") }}{{ end }}