Skip to content

Commit efe69ba

Browse files
committed
fix: fix heading links for weird edge case
1 parent 15ef279 commit efe69ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/utils/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export async function renderReadmeHtml(
378378
}
379379

380380
/** The link href uses the unique slug WITHOUT the 'user-content-' prefix, because that will later be added for all links. */
381-
return `<h${semanticLevel} id="${id}" data-level="${depth}"><a href="#${uniqueSlug}">${text}</a></h${semanticLevel}>\n`
381+
return `<h${semanticLevel} id="${id}" data-level="${depth}"><a href="#${uniqueSlug}">${plainText}</a></h${semanticLevel}>\n`
382382
}
383383

384384
// Syntax highlighting for code blocks (uses shared highlighter)

0 commit comments

Comments
 (0)