We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f040e63 commit d592ffbCopy full SHA for d592ffb
layouts/partials/docs-toc.html
@@ -31,7 +31,9 @@ <h2 class="font-medium my-3">On this page</h2>
31
<!-- Close previous list item -->
32
</li>
33
{{ end }}
34
- <li><a href="#{{ $anchorID }}">{{ $header | plainify | safeHTML }}</a>
+ <!-- Extract text content, excluding the header link icon -->
35
+ {{ $headerText := $header | replaceRE `<a[^>]*class="header-link"[^>]*>.*?</a>` "" | plainify | safeHTML }}
36
+ <li><a href="#{{ $anchorID }}">{{ $headerText }}</a>
37
{{ $prevLevel = $level }}
38
39
<!-- Close remaining open lists -->
0 commit comments