import { Decoration_Type } from "./../../ricos-types/index.js";
const isLinkOrAnchorInText = (content) => {
  if (Array.isArray(content)) {
    const node = content.find((node2) => {
      return node2.type.name === "text";
    });
    return node?.marks.some(
      (mark) => mark.type.name === Decoration_Type.LINK || mark.type.name === Decoration_Type.ANCHOR
    ) ?? false;
  }
  return false;
};
export {
  isLinkOrAnchorInText
};
//# sourceMappingURL=is-link-or-anchor-in-text.js.map
