"use client";
import { normalizeUri as r } from "../../../micromark-util-sanitize-uri/index.js";
function u(i, t) {
  const l = { src: r(t.url) };
  t.alt !== null && t.alt !== void 0 && (l.alt = t.alt), t.title !== null && t.title !== void 0 && (l.title = t.title);
  const e = { type: "element", tagName: "img", properties: l, children: [] };
  return i.patch(t, e), i.applyData(t, e);
}
export {
  u as image
};
