Skip to content

Commit

Permalink
feat: add anchor link to markdown heading (CaiJimmy#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiJimmy authored and albanpetit committed May 3, 2024
1 parent 5fbf4c7 commit a0372ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/_default/_markup/render-heading.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h{{ .Level }} id="{{ .Anchor }}">
<a href="#{{ .Anchor }}">#</a>
{{ .Text | safeHTML }}
</h{{ .Level }}>

0 comments on commit a0372ac

Please sign in to comment.