add anchor headings #123

This commit is contained in:
Dmitry Kolosov 2021-12-23 13:36:05 +03:00
parent 0b15d3bc48
commit fb130db4c3
2 changed files with 54 additions and 1 deletions

View file

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