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"),