UNPKG

@forbespro/lead-agent

Version:
20 lines (19 loc) 503 B
import { normalizeUri as f } from "./index125.js"; import { revert as o } from "./index147.js"; function m(i, e) { const l = String(e.identifier).toUpperCase(), t = i.definitionById.get(l); if (!t) return o(i, e); const r = { href: f(t.url || "") }; t.title !== null && t.title !== void 0 && (r.title = t.title); const n = { type: "element", tagName: "a", properties: r, children: i.all(e) }; return i.patch(e, n), i.applyData(e, n); } export { m as linkReference };