markdown-toc
markdown-toc copied to clipboard
orderedList=true setting bug: link prefix auto-numbering in TOC not in header refs
When markdown-toc.orderedList=true
the TOC link includes a prefix that prior fork did not. Conversely the anchor links that are added omit the prefix matching the TOC's generated list number. It should probably just add the numbered list as a style for the TOC only, and all links and section header titles should instead show #section-H1
for either markdown-toc.orderedList=true
or markdown-toc.orderedList=false
currently
<!-- TOC -->
1 [Section H1](#1-section-h1)
1.1 [Section H2](#1-1section-h2)
<!-- /TOC -->
# Section H1
<a id="markdown-section-h1" name="section-h1"></a>
some text
## Section H2
<a id="markdown-section-h2" name="section-h2"></a>
some text
should be
<!-- TOC -->
1 [Section H1](#section-h1)
1.1 [Section H2](#section-h2)
<!-- /TOC -->
# Section H1
<a id="markdown-section-h1" name="section-h1"></a>
some text
## Section H2
<a id="markdown-section-h2" name="section-h2"></a>
some text
thanks for letting me now. Will investigate when i have time. Contribute welcome 😄