@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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
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
|
}
|