feat: add anchor link to markdown heading

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/935
This commit is contained in:
Jimmy Cai 2024-03-27 16:04:53 +01:00
parent f8466d94d2
commit a8c38f0ead

View File

@ -0,0 +1,4 @@
<h{{ .Level }} id="{{ .Anchor }}">
<a href="#{{ .Anchor }}">#</a>
{{ .Text | safeHTML }}
</h{{ .Level }}>