@lobehub/editor 1.23.0 → 1.23.1
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.
|
@@ -169,7 +169,8 @@ function convertMdastToLexical(node, index, ctx) {
|
|
|
169
169
|
var tag = htmlStack.shift();
|
|
170
170
|
ctx.pop();
|
|
171
171
|
// @ts-expect-error not error
|
|
172
|
-
(_children3 = _children).push.apply(_children3, [INodeHelper.createTextNode(tag === null || tag === void 0 ? void 0 : tag.node.value)].concat(_toConsumableArray(tag.children)));
|
|
172
|
+
(_children3 = _children).push.apply(_children3, [INodeHelper.createTextNode(tag === null || tag === void 0 ? void 0 : tag.node.value)].concat(_toConsumableArray(tag.children.flat())));
|
|
173
|
+
_children = _children.flat();
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
if (markdownReaders[node.type]) {
|
package/package.json
CHANGED