From cbb6c557bef15d2da6b65aba727d0071d693c4f2 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 22 Jul 2024 14:27:35 -0300 Subject: [PATCH] Fix markdown relative links to `/` --- src/lib/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/markdown.ts b/src/lib/markdown.ts index 59abbcf78..ee6263e58 100644 --- a/src/lib/markdown.ts +++ b/src/lib/markdown.ts @@ -71,7 +71,7 @@ export class Renderer extends BaseRenderer { return `${text}`; } - if ("path" in this.#route && !isUrl(href)) { + if (this.#route.resource === "project.source" && !isUrl(href)) { href = routeToPath({ ...this.#route, path: canonicalize(href, this.#route.path || "README.md"),