import { nodeTypeFactory } from "../../../../utils/schema.js";
export const blockquoteNodeName = 'blockquote';
export const blockquoteType = nodeTypeFactory(blockquoteNodeName);
export const isBlockqouteNode = (node) => node.type.name === blockquoteNodeName;
export const BlockquoteSpecs = (builder) => {
    builder.addNode(blockquoteNodeName, () => ({
        spec: {
            content: 'block+',
            group: 'block',
            defining: true,
            parseDOM: [{ tag: 'blockquote' }],
            toDOM() {
                return ['blockquote', 0];
            },
            selectable: true,
        },
        fromMd: { tokenSpec: { name: blockquoteNodeName, type: 'block' } },
        toMd: (state, node) => {
            state.wrapBlock('> ', null, node, () => state.renderContent(node));
        },
    }));
};
//# sourceMappingURL=index.js.map
