@tiptap/extension-document
Version:
document extension for tiptap
21 lines (20 loc) • 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