FIX: Markdown javascript error with certain formatting.
This commit is contained in:
parent
3e72de7dc1
commit
4da76aab96
|
@ -1011,6 +1011,7 @@
|
||||||
var contents = this.processBlock(li_accumulate, []),
|
var contents = this.processBlock(li_accumulate, []),
|
||||||
firstBlock = contents[0];
|
firstBlock = contents[0];
|
||||||
|
|
||||||
|
if (firstBlock) {
|
||||||
firstBlock.shift();
|
firstBlock.shift();
|
||||||
contents.splice.apply(contents, [0, 1].concat(firstBlock));
|
contents.splice.apply(contents, [0, 1].concat(firstBlock));
|
||||||
add( last_li, loose, contents, nl );
|
add( last_li, loose, contents, nl );
|
||||||
|
@ -1024,6 +1025,7 @@
|
||||||
loose = false;
|
loose = false;
|
||||||
li_accumulate = "";
|
li_accumulate = "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Look at the next block - we might have a loose list. Or an extra
|
// Look at the next block - we might have a loose list. Or an extra
|
||||||
// paragraph for the current li
|
// paragraph for the current li
|
||||||
|
|
Loading…
Reference in New Issue