We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc1121e commit 3b84825Copy full SHA for 3b84825
layouts/_default/_markup/td-render-heading.html
@@ -1,5 +1,7 @@
1
-<h{{ .Level }} id="{{ .Anchor | safeURL }}"
2
- {{- with .Attributes.class }} class="{{ . }}" {{- end -}}
+<h{{ .Level }}
+ {{- range $key, $value := .Attributes -}}
3
+ {{ printf " %s=%q" $key (string $value) | safeHTMLAttr -}}
4
+ {{ end -}}
5
>
6
{{- .Text | safeHTML -}}
7
{{ template "_default/_markup/_td-heading-self-link.html" . -}}
userguide/content/en/docs/adding-content/navigation.md
@@ -341,7 +341,6 @@ cascade:
341
```
342
343
## Heading self links
344
-{.test-class}
345
346
Docsy supports build-time generation of heading self links using Hugo's
347
`render-heading.html` [hook].
0 commit comments