From cd036e56259a896218ecaa0f8bee194320f5b487 Mon Sep 17 00:00:00 2001 From: Abdul Halim Daud Date: Tue, 19 Jul 2022 23:48:50 +0800 Subject: [PATCH] fix center-quote shortcode when config unsafe = false when config unsafe = false, center-quote without markdown works but shortcode with markdown doesn't work. the following doesn't work when unsafe = false: ``` {{% center-quote %}} **hello** *world* this is a center-quote shortcode example. {{% /center-quote %}} ``` with this fix, the following works with markdown when unsafe = false: ``` {{< center-quote >}} **hello** *world* this is a center-quote shortcode example. {{< /center-quote >}} ``` --- layouts/shortcodes/center-quote.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/center-quote.html b/layouts/shortcodes/center-quote.html index 91d0f212..d2993bf5 100644 --- a/layouts/shortcodes/center-quote.html +++ b/layouts/shortcodes/center-quote.html @@ -1,3 +1,3 @@
- {{ .Inner }} + {{ .Inner | .Page.RenderString }}
\ No newline at end of file