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 }}