From 628637be817d62fb08b1cd2d0322816461cf9ed5 Mon Sep 17 00:00:00 2001 From: slashformotion <45801817+slashformotion@users.noreply.github.com> Date: Sun, 15 Aug 2021 14:28:10 +0200 Subject: [PATCH] Markdown support in all shortcodes (#21) Fixes #20 --- layouts/shortcodes/blockquote.html | 2 +- layouts/shortcodes/epigraph.html | 2 +- layouts/shortcodes/newthought.html | 2 +- layouts/shortcodes/sidenote.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html index b396406..16f78fc 100644 --- a/layouts/shortcodes/blockquote.html +++ b/layouts/shortcodes/blockquote.html @@ -1,6 +1,6 @@

- {{ .Inner }} + {{ .Inner | markdownify }}

\ No newline at end of file diff --git a/layouts/shortcodes/epigraph.html b/layouts/shortcodes/epigraph.html index af992c9..b991f27 100644 --- a/layouts/shortcodes/epigraph.html +++ b/layouts/shortcodes/epigraph.html @@ -1,7 +1,7 @@
{{ $t := .Get "type" }} -{{ if eq $t "compact" }}{{ .Inner }}{{ else }}

{{ .Inner }}

{{ end }} +{{ if eq $t "compact" }}{{ .Inner | markdownify }}{{ else }}

{{ .Inner | markdownify }}

{{ end }} {{ if .IsNamedParams }}