Skip to content

Commit 2ba7478

Browse files
authored
[Docs Site] Fix footnotes with multiple references (#17576)
1 parent ba2881b commit 2ba7478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/footnotes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (footnotes) {
99
const content = note.querySelector("p") as HTMLParagraphElement;
1010

1111
const fnrefs = document.querySelectorAll<HTMLAnchorElement>(
12-
`#${note.id.replace("fn", "fnref")}`,
12+
`a[id^='${note.id.replace("fn", "fnref")}']`,
1313
);
1414

1515
for (const fnref of fnrefs) {

0 commit comments

Comments
 (0)