Add render-heading.html

This commit is contained in:
Will Faught
2022-12-27 23:10:20 -08:00
parent ad9e495488
commit bd4fcd058e
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
{{ if .Scratch.Get "paige_show_full_pages" }}
{{ .Content }}
{{ else }}
{{ .Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` `${1}<a class="small paigeheaderlink" href="#${2}">#</a>${3}` | safeHTML }}
{{ .Content }}
{{ end }}
</article>
</div>