UNPKG

@wordpress/block-library

Version:
13 lines (12 loc) • 420 B
import { createBlock } from "@wordpress/blocks"; // packages/block-library/src/nextpage/transforms.js const transforms = { from: [{ type: "raw", schema: { "wp-block": { attributes: ["data-block"] } }, isMatch: (node) => node.dataset && node.dataset.block === "core/nextpage", transform() { return createBlock("core/nextpage", {}); } }] }; export { transforms as default }; //# sourceMappingURL=transforms.mjs.map