Skip to content

Commit

Permalink
Correct heading render hook example
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Feb 4, 2024
1 parent 4b696f9 commit a492140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/templates/render-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a492140

Please sign in to comment.