markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Produces Nan on ordered lists if nested

Open M-Fabian opened this issue 7 years ago • 2 comments

The following document shows the problem. How to reproduce:

  1. Paste text below (without the table of contents)
  2. Add TOC
  3. change depthFrom to 3 and orderedList to 1
  4. Save.

MyDocument

  1. Paragraph
  2. Another Paragraph NaN. Subparagraph

Paragraph

bla

Another Paragraph

bla

Subparagraph

bla

M-Fabian avatar May 05 '17 11:05 M-Fabian

Confirming this. Have the same issue in a different file where is use depthfrom: 2

rabelux avatar Jun 06 '17 02:06 rabelux

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.

werunom avatar Jul 26 '17 02:07 werunom