Add missing uses of safeHTML

This commit is contained in:
Will Faught
2023-09-15 23:44:56 -07:00
parent f410b73b24
commit 173872ea26
11 changed files with 20 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
{{ $caption := .Get 0 | default (.Get "caption") | markdownify }}
{{ $content := .Inner | markdownify }}
{{ $caption := .Get 0 | default (.Get "caption") | markdownify | safeHTML }}
{{ $content := .Inner | markdownify | safeHTML }}
{{ $float := .Get "float" }}
{{ $horizontal := .Get "horizontal" | default "center" }}
{{ $maxwidth := .Get "maxwidth" }}

View File

@@ -1,5 +1,5 @@
{{ $cite := .Get 0 | default (.Get "cite") }}
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify | safeHTML }}
{{ if not $content }}
{{ errorf "layouts/shortcodes/paige/quote.html: no content" }}