From 1c11addcf859dc3118e131b3da01649a0dbf7134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20de=20Souza?= Date: Mon, 8 Jan 2024 11:17:33 +0100 Subject: [PATCH] Allow calling math shortcode with markdown (#36) --- layouts/shortcodes/math.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/math.html b/layouts/shortcodes/math.html index 32fb900..11195ff 100644 --- a/layouts/shortcodes/math.html +++ b/layouts/shortcodes/math.html @@ -15,6 +15,6 @@ {{ printf "%s/dist/contrib/auto-render.min.js" $katex | resources.GetRemote | minify | fingerprint | resources.Copy "js/auto-render.js" | .Page.Scratch.SetInMap "js" "math-2" }} {{ resources.Get "js/math.js" | minify | fingerprint | .Page.Scratch.SetInMap "js" "math-3" }} -
+ {{ `
` | htmlUnescape | safeHTML }} {{ .Inner }} -
+ {{ "
" | htmlUnescape | safeHTML }}