import { visit as o } from "../../../../../unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js";
import { toString as a } from "../../../../../mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js";
import { EXIT as f } from "../../../../../unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.es.js";
function n(t, i) {
  let e = !1;
  return o(t, function(r) {
    if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
      return e = !0, f;
  }), !!((!t.depth || t.depth < 3) && a(t) && (i.options.setext || e));
}
export {
  n as formatHeadingAsSetext
};
//# sourceMappingURL=format-heading-as-setext.es.js.map
