Update src/editor/deserialize.js
Co-Authored-By: Bruno Windels <bruno@windels.cloud>
This commit is contained in:
parent
a95f7be22d
commit
75bcc3f849
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ function parseElement(n, partCreator, lastNode, state) {
|
|||
const indent = " ".repeat(state.listDepth - 1);
|
||||
if (n.parentElement.nodeName === "OL") {
|
||||
// The markdown parser doesn't do nested indexed lists at all, but this supports it anyway.
|
||||
let index = state.listIndex[state.listIndex.length - 1]++;
|
||||
let index = state.listIndex[state.listIndex.length - 1];
|
||||
state.listIndex[state.listIndex.length - 1] += 1;
|
||||
return partCreator.plain(`${indent}${index}. `);
|
||||
} else {
|
||||
return partCreator.plain(`${indent}- `);
|
||||
|
|
Loading…
Reference in a new issue