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