"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const createMarkHtmlDeserializer = (markType, tagMatcher, attributeMatcher) => ({
  processAttributesPaste: ({ element, cumulativeTextAttrs: cta }) => {
    return attributeMatcher(element) ? { ...cta, [markType]: true } : cta;
  },
  processInlinePaste: ({ element, next, cumulativeTextAttrs }) => {
    if (tagMatcher(element)) {
      return next(element.childNodes, { ...cumulativeTextAttrs, [markType]: true });
    }
    return null;
  }
});
exports.createMarkHtmlDeserializer = createMarkHtmlDeserializer;
//# sourceMappingURL=CustomMarkPlugin.cjs.map
