diff --git a/bun.lockb b/bun.lockb index 66ea51f..c6110e7 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 691cbdc..2e06b41 100644 --- a/package.json +++ b/package.json @@ -18,18 +18,18 @@ "license": "GPL-3.0", "dependencies": { "lodash.capitalize": "^4.2.1", - "mdast-util-find-and-replace": "^3.0.1", + "mdast-util-find-and-replace": "^3.0.2", "unist-util-visit": "^4.1.2" }, "devDependencies": { "@types/lodash.capitalize": "^4.2.9", - "@types/unist": "^2.0.10", + "@types/unist": "^2.0.11", "mdast-util-to-string": "^4.0.0", "rehype-raw": "^6.1.1", "rehype-stringify": "^9.0.4", "remark-parse": "^10.0.2", "remark-rehype": "^10.1.0", - "typescript": "^5.5.4", + "typescript": "^5.8.3", "unified": "^10.1.2" } } diff --git a/src/index.ts b/src/index.ts index 35d9a37..bc7e556 100644 --- a/src/index.ts +++ b/src/index.ts @@ -171,6 +171,11 @@ export default function ofm() { return { type: "link", url, + data: { + hProperties: { + label: alias ?? fp, + } + }, children: [ { type: "text",