Skip to content

Commit 45117af

Browse files
committed
fix footnote hover behavior
1 parent 82b3018 commit 45117af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/formats/html/templates/quarto-html.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
295295
const ref = noterefs[i];
296296
tippyHover(ref, function() {
297297
// use id or data attribute instead here
298-
let href = ref.getAttribute('data-footnote-href');
298+
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
299299
try { href = new URL(href).hash; } catch {}
300300
const id = href.replace(/^#\/?/, "");
301301
const note = window.document.getElementById(id);

0 commit comments

Comments
 (0)