mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fixed problem with list wiki rule
This commit is contained in:
parent
3bef25194c
commit
6d727437e7
@ -283,7 +283,10 @@ WikiTextRules.rules = [
|
||||
var t,e;
|
||||
if(listLevel > currLevel) {
|
||||
for(t=currLevel; t<listLevel; t++) {
|
||||
var target = (currLevel === 0) ? stack[stack.length-1] : stack[stack.length-1].lastChild;
|
||||
var target = stack[stack.length-1];
|
||||
if(currLevel !== 0 && target.children) {
|
||||
target = target.children[target.children.length-1];
|
||||
}
|
||||
e = {type: listType, children: []};
|
||||
target.push(e);
|
||||
stack.push(e.children);
|
||||
|
Loading…
Reference in New Issue
Block a user