@openeditor/react 0.0.19 → 0.0.20
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 +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -33726,7 +33726,7 @@ var renderViewerNode = (node, key, renderers, registry = defaultBlockRegistry) =
|
|
|
33726
33726
|
}
|
|
33727
33727
|
switch (blockKey) {
|
|
33728
33728
|
case "paragraph":
|
|
33729
|
-
return /* @__PURE__ */ jsx("p", { children }, key);
|
|
33729
|
+
return /* @__PURE__ */ jsx("p", { children: node.content?.length ? children : /* @__PURE__ */ jsx("br", {}) }, key);
|
|
33730
33730
|
case "heading": {
|
|
33731
33731
|
const level = typeof node.attrs?.level === "number" ? Math.min(Math.max(node.attrs.level, 1), 6) : 2;
|
|
33732
33732
|
switch (level) {
|