fix it
This commit is contained in:
7
homepage/layouts/_default/_markup/render-heading.html
Normal file
7
homepage/layouts/_default/_markup/render-heading.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ $class := "" }}
|
||||
{{ if findRE "^(?:\\d+\\.)+\\s+" .Text 1 }}
|
||||
{{ $class = "manual-number" }}
|
||||
{{ end }}
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with $class }} class="{{ . }}"{{ end }}>
|
||||
{{ .Text | safeHTML }}
|
||||
</h{{ .Level }}>
|
||||
Reference in New Issue
Block a user