Replace the git submodule with directly tracked files so that `git commit .` no longer fails with 'does not have a commit checked out'. Removed .github/ from the vendored copy since upstream CI workflows are not needed here.
7 lines
224 B
HTML
7 lines
224 B
HTML
{{- /* formats .Content headings by adding an anchor */ -}}
|
|
{{ . | replaceRE
|
|
"(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)"
|
|
"${1}<a hidden class=\"anchor\" aria-hidden=\"true\" href=\"#${2}\">#</a>${3}"
|
|
| safeHTML
|
|
}}
|