fix(search): unescape title (#741)

This commit is contained in:
Ludovic Fernandez
2025-08-12 14:02:35 +02:00
committed by GitHub
parent 532cbcce10
commit b6864a0c19

View File

@@ -20,7 +20,7 @@ The scratchpad must be initialized with empty slices before calling this functio
{{- $.scratch.Add "keys" (slice $key) -}} {{- $.scratch.Add "keys" (slice $key) -}}
{{- end -}} {{- end -}}
{{- $title := (printf "<h%d>%s" $heading.Level $heading.Title) -}} {{- $title := (printf "<h%d>%s" $heading.Level $heading.Title) | htmlUnescape -}}
{{- $.scratch.Add "titles" (slice $title) -}} {{- $.scratch.Add "titles" (slice $title) -}}
{{- partial "utils/extract-headings.html" (dict {{- partial "utils/extract-headings.html" (dict