rme 0.0.75 → 0.0.76

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.
package/dist/index.mjs CHANGED
@@ -4608,7 +4608,9 @@ var rule2 = (state) => {
4608
4608
  newTokens.push(newToken);
4609
4609
  childs = [];
4610
4610
  }
4611
- tokens.splice(i, 1, ...newTokens);
4611
+ if (curToken.children && newTokens.length > 0) {
4612
+ tokens.splice(i, 1, ...newTokens);
4613
+ }
4612
4614
  } else if (isHtmlBlockToken(curToken)) {
4613
4615
  const tag = getTagName(curToken.content);
4614
4616
  if (isSingleNode(curToken.content) && needSplitInlineHtmlTokenTags.includes(tag)) {
@@ -8567,6 +8569,7 @@ var ErrorBoundary = class extends React2.Component {
8567
8569
  }
8568
8570
  render() {
8569
8571
  if (this.state.hasError) {
8572
+ console.error(this.props.error);
8570
8573
  return /* @__PURE__ */ jsxs2(Fragment4, { children: [
8571
8574
  /* @__PURE__ */ jsx5(Title, { "data-testid": "editor_error", children: "Sorry, something went wrong!" }),
8572
8575
  /* @__PURE__ */ jsx5("p", { children: String(this.props.error) })