From 6f457b18c7deb37f66bf5ccae6d31a904d0c0565 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Tue, 22 Sep 2020 14:56:12 +0200 Subject: [PATCH] [Shortcode] Add option to write markdown inside details --- layouts/shortcodes/details.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html index 6d1da38..41d2dca 100644 --- a/layouts/shortcodes/details.html +++ b/layouts/shortcodes/details.html @@ -1,3 +1,7 @@
{{ .Get "title" }} -{{ .Inner }} + {{ if .Get "md" }} + {{ .Inner | markdownify }} + {{ else }} + {{ .Inner }} + {{ end }}