mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-26 19:53:49 +01:00
feat: add anchor link to markdown heading (#992)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/935
This commit is contained in:
parent
f8466d94d2
commit
539c39d69a
1 changed files with 4 additions and 0 deletions
4
layouts/_default/_markup/render-heading.html
Normal file
4
layouts/_default/_markup/render-heading.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<h{{ .Level }} id="{{ .Anchor }}">
|
||||
<a href="#{{ .Anchor }}">#</a>
|
||||
{{ .Text | safeHTML }}
|
||||
</h{{ .Level }}>
|
Loading…
Reference in a new issue