From f2f9e78559ee8eed6c8b6fb59aa723427177ec90 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 27 Jan 2023 16:14:23 -0600 Subject: [PATCH] Use RenderString instead of markdownify in some places --- layouts/shortcodes/include.html | 2 +- layouts/shortcodes/table.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html index ae24c26..f79d408 100644 --- a/layouts/shortcodes/include.html +++ b/layouts/shortcodes/include.html @@ -11,7 +11,7 @@ {{ if $markdown }} - {{ $path | readFile | markdownify }} + {{ $path | readFile | .Page.RenderString (dict "display" "block") }} {{ else }} {{ $path | readFile }} {{ end }} diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index 3a43ab0..580e16b 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -5,6 +5,6 @@ {{ $class = delimit (slice $class .) " " }} {{ end }} -{{ $htmlTable := .Inner | markdownify }} +{{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }} {{ $new := printf `` $class }} {{ (replace $htmlTable "
" $new) | safeHTML }}