|
|
@ -1402,13 +1402,20 @@ |
|
|
|
var text = toc[i].text; |
|
|
|
var level = toc[i].level; |
|
|
|
|
|
|
|
if (level < startLevel) { continue; } |
|
|
|
if (level < startLevel) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
if (level > lastLevel) { |
|
|
|
if (level > lastLevel) |
|
|
|
{ |
|
|
|
html += ""; |
|
|
|
} else if (level < lastLevel) { |
|
|
|
} |
|
|
|
else if (level < lastLevel) |
|
|
|
{ |
|
|
|
html += (new Array(lastLevel - level + 2)).join("</ul></li>"); |
|
|
|
} else { |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
html += "</ul></li>"; |
|
|
|
} |
|
|
|
|
|
|
|