//#region ../../node_modules/mdast-util-to-string/lib/index.js
var e = {};
function t(t, r) {
	let i = r || e;
	return n(t, typeof i.includeImageAlt == "boolean" ? i.includeImageAlt : !0, typeof i.includeHtml == "boolean" ? i.includeHtml : !0);
}
function n(e, t, n) {
	if (i(e)) {
		if ("value" in e) return e.type === "html" && !n ? "" : e.value;
		if (t && "alt" in e && e.alt) return e.alt;
		if ("children" in e) return r(e.children, t, n);
	}
	return Array.isArray(e) ? r(e, t, n) : "";
}
function r(e, t, r) {
	let i = [], a = -1;
	for (; ++a < e.length;) i[a] = n(e[a], t, r);
	return i.join("");
}
function i(e) {
	return !!(e && typeof e == "object");
}
//#endregion
export { t as toString };
