Skip to content

Commit

Permalink
[Docs Site] Fix footnotes with multiple references (#17576)
Browse files Browse the repository at this point in the history
  • Loading branch information
KianNH authored Oct 16, 2024
1 parent ba2881b commit 2ba7478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/footnotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (footnotes) {
const content = note.querySelector("p") as HTMLParagraphElement;

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

for (const fnref of fnrefs) {
Expand Down

0 comments on commit 2ba7478

Please sign in to comment.