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:
parent
a6b329a698
commit
9956a1cbdb
@ -1,9 +1,7 @@
|
||||
{{- $title := .Get "title" -}}
|
||||
<div class="feature-card">
|
||||
{{- if $title -}}
|
||||
<h4 class="feature-card__title">{{ $title }}</h4>
|
||||
{{- end -}}
|
||||
<div class="feature-card__body">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
{{- if $title -}}
|
||||
<h4 class="feature-card__title">{{ $title }}</h4>
|
||||
{{- end -}}
|
||||
<div class="feature-card__body">{{ .Inner | markdownify }}</div>
|
||||
</div>
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
{{- $title := .Get "title" -}}
|
||||
<section class="feature-section">
|
||||
{{- if $title -}}
|
||||
<h3 class="feature-section__title">{{ $title }}</h3>
|
||||
{{- end -}}
|
||||
<div class="feature-section__body">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
{{- if $title -}}
|
||||
<h3 class="feature-section__title">{{ $title }}</h3>
|
||||
{{- end -}}
|
||||
<div class="feature-section__body">{{ .Inner | markdownify }}</div>
|
||||
</section>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user