@scrider/formatter 1.3.0 → 1.3.2

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.js CHANGED
@@ -3519,7 +3519,7 @@ function htmlToDelta(html, options = {}) {
3519
3519
  }
3520
3520
  const children2 = element.childNodes;
3521
3521
  const firstChild = children2[0];
3522
- const isBrOnlyParagraph = children2.length === 1 && firstChild !== void 0 && isElement(firstChild) && firstChild.tagName.toLowerCase() === "br";
3522
+ const isBrOnlyParagraph = children2.length === 1 && firstChild !== void 0 && isElement(firstChild) && firstChild.tagName.toLowerCase() === "br" && !firstChild.hasAttribute("data-scrider-embed");
3523
3523
  if (!isBrOnlyParagraph) {
3524
3524
  processChildren(element);
3525
3525
  }