congo/layouts/partials/heading-anchor.html

2 lines
155 B
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
{{ . | replaceRE "(<h[2-4] id=\"([^\"]+)\".+)(</h[2-9]+>)" `${1}&nbsp;<a class="heading-anchor" href="#${2}" aria-label="Anchor">#</a> ${3}` | safeHTML }}