We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab8fab commit abeb16cCopy full SHA for abeb16c
layouts/_default/_markup/render-heading.html
@@ -1 +1,3 @@
1
-<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}<a class="headerlink" href="#{{ .Anchor | safeURL }}" title="Link to this heading">#</a></h{{ .Level }}>
+{{ $id := .Anchor | anchorize -}}
2
+{{- $anchor := printf "#%s" $id -}}
3
+<h{{ .Level }} id="{{ $id }}">{{ .Text | safeHTML }}<a class="headerlink" {{ printf "href=%q" $anchor | safeHTMLAttr }} title="Link to this heading">#</a></h{{ .Level }}>
0 commit comments