website/layouts/partials/main/headline-hash.html
2021-03-09 18:56:02 +05:30

1 line
No EOL
139 B
HTML

{{ . | replaceRE "(<h[2-9] id=\"([^\"]+)\".+)(</h[2-9]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true">#</a> ${3}` | safeHTML }}