Merge pull request #129 from Mitrichius/anchor-headings/#123

Add anchor headings
This commit is contained in:
Dmitry Kolosov 2021-12-27 23:09:46 +03:00 committed by GitHub
commit 31bb3493eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 }}>