@kaitify/core 0.0.2-beta.10 → 0.0.2-beta.11

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.
@@ -36121,7 +36121,12 @@ const TableExtension = () => Extension.create({
36121
36121
  const rows = nodes.filter((item) => item.isMatch({ tag: "tr" })).map((item) => {
36122
36122
  item.parent = tbody;
36123
36123
  if (item.hasChildren()) {
36124
- item.children = item.children.filter((it) => it.isMatch({ tag: "td" }) || it.isMatch({ tag: "th" }));
36124
+ item.children = item.children.map((it) => {
36125
+ if (!it.isMatch({ tag: "td" }) && !it.isMatch({ tag: "th" })) {
36126
+ it.toEmpty();
36127
+ }
36128
+ return it;
36129
+ });
36125
36130
  }
36126
36131
  return item;
36127
36132
  });