cedaei.com/layouts/partials/anchored-headings.html
Ceda EI bfb1829a86 Squashed 'themes/codex/' content from commit da2d16a
git-subtree-dir: themes/codex
git-subtree-split: da2d16a4f95fc37e71548dfc139d51e22ebb09bd
2020-12-11 02:43:08 +05:30

3 lines
179 B
HTML

<!-- formats .Content headings by adding an anchor -->
{{ . | replaceRE "(<h[2-3] id=\"([^\"]+)\".+)(</h[2-9]+>)" "${1}<a class=\"anchor\" href=\"#${2}\">#</a>${3}" | safeHTML }}