markdown-toc
markdown-toc copied to clipboard
Produces Nan on ordered lists if nested
The following document shows the problem. How to reproduce:
- Paste text below (without the table of contents)
- Add TOC
- change depthFrom to 3 and orderedList to 1
- Save.
MyDocument
- Paragraph
- Another Paragraph NaN. Subparagraph
Paragraph
bla
Another Paragraph
bla
Subparagraph
bla
Confirming this. Have the same issue in a different file where is use depthfrom: 2
Have similar issue. But NaN appears only for 5th heading level. Below is the illustration for ordered list...
4. H2 heading
1. H3 heading
1. H4 heading
NaN. H5 heading
NaN. H5 heading
NaN. H5 heading
Let me know if you need more info.