mirror of
https://github.com/imfing/hextra.git
synced 2025-10-13 18:02:13 -04:00
feat(shortcode): added markdown attribute support for headers (#851)
docs: added "no-step-marker" example for steps
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user