export const createBlockTaskItem = ({
  attrs,
  content,
  marks,
  schema
}) => {
  const {
    blockTaskItem,
    paragraph
  } = schema.nodes;
  const newParagraph = paragraph.createChecked(null, content, marks === null || marks === void 0 ? void 0 : marks.filter(mark => blockTaskItem.allowsMarkType(mark.type)));
  return blockTaskItem.create(attrs !== null && attrs !== void 0 ? attrs : null, newParagraph);
};