import { normalizeUri as e } from "../../../../../micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.js";
function p(i, t) {
  const l = { src: e(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 r = { type: "element", tagName: "img", properties: l, children: [] };
  return i.patch(t, r), i.applyData(t, r);
}
export {
  p as image
};
//# sourceMappingURL=image.js.map
