TOC html
Jump to navigation
Jump to search
| Line 70: | Line 70: | ||
if(value.path) { | if(value.path) { | ||
var repeat = depth | var repeat = depth | ||
| − | if(parent | + | if(parent) { |
| − | + | 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