Skip to content

Commit 43a7035

Browse files
committed
fix: also normalise ids
1 parent b732bee commit 43a7035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ ${html}
402402
// Helper to prefix id attributes with 'user-content-'
403403
const prefixId = (tagName: string, attribs: sanitizeHtml.Attributes) => {
404404
if (attribs.id && !attribs.id.startsWith('user-content-')) {
405-
attribs.id = `user-content-${attribs.id}`
405+
attribs.id = `user-content-${attribs.id.toLowerCase()}`
406406
}
407407
return { tagName, attribs }
408408
}

0 commit comments

Comments
 (0)