From 00ab1ddd4c38f50e3e32f694f61801073bb3b645 Mon Sep 17 00:00:00 2001 From: Peaceultime Date: Fri, 18 Apr 2025 20:11:10 +0200 Subject: [PATCH] Fix URI component --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 209d517..1d9fdb8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,7 +166,7 @@ export default function ofm() { const alias = rawAlias?.slice(1).trim(); // internal link - const url = fp + anchor; + const url = encodeURIComponent(fp) + anchor; return { type: "link", url,