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