Aiden Bai
2022-05-27 bc32bbeaed10eac3094fcaa899ca626dc8e56771
layouts/partials/textprocessing.html
@@ -53,4 +53,8 @@
    {{end}}
  {{end}}
{{end}}
{{/* Add copyable anchors */}}
{{ $content = $content | replaceRE "(<h[1-9] id=\"([^\"]+)\">)(.+)(</h[1-9]>)" `<a href="#${2}">${1}<span class="hanchor" ariaLabel="Anchor"># </span>${3}${4}</a>` }}
{{ $content | safeHTML }}