fix(shortcodes): éviter que Goldmark interprète </div> comme bloc de code

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 </div> non indenté.

Made-with: Cursor
This commit is contained in:
MARTIN Julien 2026-04-22 18:53:34 +02:00
parent a6b329a698
commit 9956a1cbdb
2 changed files with 8 additions and 12 deletions

View File

@ -1,9 +1,7 @@
{{- $title := .Get "title" -}} {{- $title := .Get "title" -}}
<div class="feature-card"> <div class="feature-card">
{{- if $title -}} {{- if $title -}}
<h4 class="feature-card__title">{{ $title }}</h4> <h4 class="feature-card__title">{{ $title }}</h4>
{{- end -}} {{- end -}}
<div class="feature-card__body"> <div class="feature-card__body">{{ .Inner | markdownify }}</div>
{{ .Inner | markdownify }}
</div>
</div> </div>

View File

@ -1,9 +1,7 @@
{{- $title := .Get "title" -}} {{- $title := .Get "title" -}}
<section class="feature-section"> <section class="feature-section">
{{- if $title -}} {{- if $title -}}
<h3 class="feature-section__title">{{ $title }}</h3> <h3 class="feature-section__title">{{ $title }}</h3>
{{- end -}} {{- end -}}
<div class="feature-section__body"> <div class="feature-section__body">{{ .Inner | markdownify }}</div>
{{ .Inner | markdownify }}
</div>
</section> </section>