@makeswift/runtime 0.11.15 → 0.11.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3204,6 +3204,15 @@ function withBlock(editor) {
3204
3204
  });
3205
3205
  return;
3206
3206
  }
3207
+ if (normalizationPath.length === 1 && ElementUtils.isRootBlock(normalizationNode) && !ElementUtils.isList(normalizationNode)) {
3208
+ const children = Array.from(Node.children(editor, normalizationPath));
3209
+ if (children.findIndex(([child]) => ElementUtils.isRootBlock(child)) !== -1) {
3210
+ Transforms.unwrapNodes(editor, {
3211
+ at: normalizationPath
3212
+ });
3213
+ return;
3214
+ }
3215
+ }
3207
3216
  if (ElementUtils.isListItem(normalizationNode)) {
3208
3217
  const pathToListItemText = [...normalizationPath, LIST_ITEM_CHILD_POSITION];
3209
3218
  if (Node.has(editor, pathToListItemText)) {