feat(shortcode): added markdown attribute support for headers (#851)

docs: added "no-step-marker" example for steps
This commit is contained in:
Paul Marrapese
2025-10-11 15:13:04 -07:00
committed by GitHub
parent 708358de80
commit b7f4bffce6
3 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
<h{{ .Level }}>
<h{{ .Level }} {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
{{- .Text | safeHTML -}}
{{- if gt .Level 1 -}}
<span class="hx:absolute hx:-mt-20" id="{{ .Anchor | safeURL }}"></span>