import { toString as e } from "../../../mdast-util-to-string/lib/index.js";
//#region ../../node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
function t(t, n) {
	let r = e(t);
	return !!(!n.options.resourceLink && t.url && !t.title && t.children && t.children.length === 1 && t.children[0].type === "text" && (r === t.url || "mailto:" + r === t.url) && /^[a-z][a-z+.-]+:/i.test(t.url) && !/[\0- <>\u007F]/.test(t.url));
}
//#endregion
export { t as formatLinkAsAutolink };
