Skip to content

Commit

Permalink
fix: htmlUnescape toc title (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing authored Nov 5, 2023
1 parent defc9bc commit 678f0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{{- if .Title }}
<li class="my-2 scroll-my-6 scroll-py-6">
<a class="{{ $class }} inline-block text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300 contrast-more:text-gray-900 contrast-more:underline contrast-more:dark:text-gray-50 w-full break-words" href="#{{ anchorize .ID }}">
{{- .Title | safeHTML | plainify }}
{{- .Title | safeHTML | plainify | htmlUnescape }}
</a>
</li>
{{- end -}}
Expand Down

0 comments on commit 678f0b8

Please sign in to comment.