Correct heading render hook example

This commit is contained in:
Joe Mooring
2024-02-04 14:15:02 -08:00
committed by GitHub
parent 4b696f936d
commit a49214057c
+1 -1
View File
@@ -128,7 +128,7 @@ Here is a code example for how the render-image.html template could look:
Given this template file
{{< code file=layouts/_default/_markup/render-heading.html >}}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}">¶</a></h{{ .Level }}>
<h{{ .Level }} id="{{ .Anchor }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}">¶</a></h{{ .Level }}>
{{< /code >}}
And this markdown