HTML tags are added when generating the TOC. The output looks like:
- [<ol>
<li>Description</li>
</ol>](#ollidescriptionliol)
- [<ol start="2">
<li>Scope</li>
</ol>](#ol-start2liscopeliol)
- [<ol start="3">
<li>Expected Outcome</li>
</ol>](#ol-start3liexpected-outcomeliol)
- [<ol start="4">
<li>Using the Files</li>
</ol>](#ol-start4liusing-the-filesliol)
- [4.1. Extracting *.edf Files](#41-extracting-edf-files)
- [4.2. Extracting *.mat Files](#42-extracting-mat-files)
- [<ol start="5">
<li>Experiments</li>
</ol>](#ol-start5liexperimentsliol)
- [5.1. Experiment 1](#51-experiment-1)
- [5.1.1. Test-1](#511-test-1)
- [5.1.1.1. Using NeuCube (without normalisation, feature extraction)](#5111-using-neucube-without-normalisation-feature-extraction)
- [5.1.1.2. Using Multilayer Perceptron](#5112-using-multilayer-perceptron)
- [5.1.1.3. Using Random Forest](#5113-using-random-forest)
- [5.1.1.4. Using NeuCube Cloud (Merged)](#5114-using-neucube-cloud-merged)
- [5.1.1.5. Using Multilayer Perceptron (Merged)](#5115-using-multilayer-perceptron-merged)
- [5.1.1.6. Using Random Forest (merged)](#5116-using-random-forest-merged)
- [5.2. Experiment-2](#52-experiment-2)
- [5.3. Experiment-3](#53-experiment-3)
- [5.4. Experiment-4](#54-experiment-4)
Create an MD content with headers and set the following in settings.json
"markdown.extension.toc.githubCompatibility": true,
"markdown.extension.toc.levels": "2..6",
Then generate the TOC at the top of the page after # (H1) header
None.
Thanks for the feedback. It should be fixed in the dev build.
Just FYI, I get the same issue without any of the settings above. The reason seem to be if you have a numbered list in your headings (e.g. ## 1. abc...)
I'm using Version 2.6.0
@SoftwareApe Thanks for the info. I am going to publish a new version soon.
Most helpful comment
Thanks for the feedback. It should be fixed in the dev build.