import { Plugin } from 'prosemirror-state';
import { fixPastedTableBodies, unpackSingleCellTable } from "../paste.js";
export const yfmTableTransformPastedPlugin = ({ schema }) => new Plugin({
    props: {
        transformPasted(slice) {
            slice = unpackSingleCellTable(slice);
            slice = fixPastedTableBodies(slice, schema);
            return slice;
        },
    },
});
//# sourceMappingURL=yfmTableTransformPastedPlugin.js.map
