Merge commit 'bfb1829a86a2bc1b595dad52a9d6dcfe80dd0679' as 'themes/codex'
This commit is contained in:
2
themes/codex/layouts/partials/anchored-headings.html
Normal file
2
themes/codex/layouts/partials/anchored-headings.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- formats .Content headings by adding an anchor -->
|
||||
{{ . | replaceRE "(<h[2-3] id=\"([^\"]+)\".+)(</h[2-9]+>)" "${1}<a class=\"anchor\" href=\"#${2}\">#</a>${3}" | safeHTML }}
|
||||
Reference in New Issue
Block a user