improve: add fixes/suggestions from panr

This commit is contained in:
Sophia Brandt
2020-01-23 21:04:09 +01:00
parent e8fdb4e084
commit ff3aa2316b
7 changed files with 9 additions and 8 deletions

View File

@ -28,7 +28,7 @@
{{ end }}
<div class="post-content">
{{- with .Content -}}
{{- with .Content -}}
<div>
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor"> &#8983;</a> ${3}` | safeHTML }}
</div>