TOC html

From Redazione
Jump to navigation Jump to search
Line 70: Line 70:
 
if(value.path) {
 
if(value.path) {
 
var repeat = depth
 
var repeat = depth
if(parent && !parent.path && parent.text == value.path) {
+
if(parent) {
repeat--;
+
if(!parent.path) {
 +
if(parent.text == value.path) {
 +
repeat--;
 +
}
 +
}
 
}
 
}
 
wiki_list.push('#'.repeat(repeat) + '[[' + value.path + '|' + value.text + ']]')
 
wiki_list.push('#'.repeat(repeat) + '[[' + value.path + '|' + value.text + ']]')

Revision as of 17:35, 16 July 2020

tree placeholder