[READ-ONLY] a fast, modern browser for the npm registry

fix: convert anchor links in readme content to lowercase (#1296)

authored by

Thomas Deinhamer and committed by
GitHub
dfc2b772 9afb54fd

+3 -1
+3 -1
server/utils/readme.ts
··· 384 384 }) 385 385 } 386 386 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>` 388 390 } 389 391 390 392 // GitHub-style callouts: > [!NOTE], > [!TIP], etc.