diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 39c3cb2..86ee3b6 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -5,7 +5,11 @@
    {{ range $headings }}
  1. - + {{ $id := findRE "id=\".*\"" . }} + {{ $id = index $id 0 }} + {{ $id = strings.TrimPrefix "id=\"" $id }} + {{ $id = strings.TrimSuffix "\"" $id }} + {{ . | htmlUnescape | plainify }}