mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Fix markdown relative links to /
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ export class Renderer extends BaseRenderer {
|
||||
return `<a ${title ? `title="${title}"` : ""} href="${href.toLowerCase()}">${text}</a>`;
|
||||
}
|
||||
|
||||
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"),
|
||||
|
||||
Reference in New Issue
Block a user