From 9956a1cbdbe008a2211a77224ffc2dea74855c2d Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Wed, 22 Apr 2026 18:53:34 +0200 Subject: [PATCH] =?UTF-8?q?fix(shortcodes):=20=C3=A9viter=20que=20Goldmark?= =?UTF-8?q?=20interpr=C3=A8te=20=20comme=20bloc=20de=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La fermeture du div était indentée dans le gabarit ; une fois injectée après une liste, CommonMark la traitait comme du code indenté. Corps du bloc sur une seule ligne avec non indenté. Made-with: Cursor --- layouts/shortcodes/card.html | 10 ++++------ layouts/shortcodes/featureblock.html | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 110096a..2bce2dd 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -1,9 +1,7 @@ {{- $title := .Get "title" -}}
- {{- if $title -}} -

{{ $title }}

- {{- end -}} -
- {{ .Inner | markdownify }} -
+{{- if $title -}} +

{{ $title }}

+{{- end -}} +
{{ .Inner | markdownify }}
diff --git a/layouts/shortcodes/featureblock.html b/layouts/shortcodes/featureblock.html index ac7ec98..27d352d 100644 --- a/layouts/shortcodes/featureblock.html +++ b/layouts/shortcodes/featureblock.html @@ -1,9 +1,7 @@ {{- $title := .Get "title" -}}
- {{- if $title -}} -

{{ $title }}

- {{- end -}} -
- {{ .Inner | markdownify }} -
+{{- if $title -}} +

{{ $title }}

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