opencrm/frontend/node_modules/@tiptap/extension-document/dist/index.js

21 lines
409 B
JavaScript

// src/document.ts
import { Node } from "@tiptap/core";
var Document = Node.create({
name: "doc",
topNode: true,
content: "block+",
renderMarkdown: (node, h) => {
if (!node.content) {
return "";
}
return h.renderChildren(node.content, "\n\n");
}
});
// src/index.ts
var index_default = Document;
export {
Document,
index_default as default
};
//# sourceMappingURL=index.js.map