import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
//#region ../../node_modules/mdast-util-to-hast/lib/handlers/image.js
function t(t, n) {
	let r = { src: e(n.url) };
	n.alt !== null && n.alt !== void 0 && (r.alt = n.alt), n.title !== null && n.title !== void 0 && (r.title = n.title);
	let i = {
		type: "element",
		tagName: "img",
		properties: r,
		children: []
	};
	return t.patch(n, i), t.applyData(n, i);
}
//#endregion
export { t as image };
