"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const anchorHtmlDeserializer = {
  processInlinePaste: ({ element, next, cumulativeTextAttrs }) => {
    if (element.tagName === "A" && element.getAttribute("href")) {
      const href = element.getAttribute("href");
      return [
        {
          type: "anchor",
          href,
          children: next(element.childNodes, cumulativeTextAttrs)
        }
      ];
    }
    return null;
  }
};
exports.anchorHtmlDeserializer = anchorHtmlDeserializer;
//# sourceMappingURL=AnchorHtmlDeserializer.cjs.map
