diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
index e308042..8aeb3c7 100644
--- a/layouts/shortcodes/details.html
+++ b/layouts/shortcodes/details.html
@@ -2,5 +2,5 @@
{{ $summary := .Get "summary" -}}
{{ with $summary }}{{ . }}
{{ end }}
-{{ .Inner | markdownify }}
+{{ .Inner | $.Page.RenderString (dict "display" "block") }}
diff --git a/layouts/shortcodes/wrapper.html b/layouts/shortcodes/wrapper.html
index 371f73c..4b1653e 100644
--- a/layouts/shortcodes/wrapper.html
+++ b/layouts/shortcodes/wrapper.html
@@ -1 +1 @@
-
{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | markdownify }}{{ end }}
+{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | $.Page.RenderString (dict "display" "block") }}{{ end }}