import { normalizeUri as e } from "../../../../../micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.js";
function a(l, t) {
  const i = { href: e(t.url) };
  t.title !== null && t.title !== void 0 && (i.title = t.title);
  const r = {
    type: "element",
    tagName: "a",
    properties: i,
    children: l.all(t)
  };
  return l.patch(t, r), l.applyData(t, r);
}
export {
  a as link
};
//# sourceMappingURL=link.js.map
