Skip to content

Commit 41ebb88

Browse files
committed
fix: lowercase anchor links in readme content
1 parent da4a963 commit 41ebb88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/utils/readme.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,9 @@ ${html}
384384
})
385385
}
386386

387-
return `<a href="${resolvedHref}"${titleAttr}${relAttr}${targetAttr}>${text}</a>`
387+
const hrefValue = resolvedHref.startsWith('#') ? resolvedHref.toLowerCase() : resolvedHref
388+
389+
return `<a href="${hrefValue}"${titleAttr}${relAttr}${targetAttr}>${text}</a>`
388390
}
389391

390392
// GitHub-style callouts: > [!NOTE], > [!TIP], etc.

0 commit comments

Comments
 (0)