The plugin uses wikilinks to generate a clickable table of contents (see in this PR why wiklinks and not markdown links) but wiklinks don't support formatting; this link for instance:
[[#some-anchor|Some **text** with <em>emphasis</em>]]
will render as:
Some **text** with <em>emphasis</em>
So let's strip markdown & HTML markup from headings when generating the TOC. So the text will lose its formatting, but be readable:
The plugin uses wikilinks to generate a clickable table of contents (see in this PR why wiklinks and not markdown links) but wiklinks don't support formatting; this link for instance:
will render as:
So let's strip markdown & HTML markup from headings when generating the TOC. So the text will lose its formatting, but be readable:
And don't apply stripping if
includeLinks: false