diff --git a/source/node/MergeSplit.ts b/source/node/MergeSplit.ts index 17645ec..0b1a4be 100644 --- a/source/node/MergeSplit.ts +++ b/source/node/MergeSplit.ts @@ -44,6 +44,7 @@ const fixCursor = (node: Node): Node => { while ((child = parent.lastElementChild) && !isInline(child)) { parent = child; } + node = parent; } if (fixer) { try {