Skip to content

Commit b94120f

Browse files
authored
fix(viewer): Unneeded manual internal link; Fix target is in LaTeX (#215)
* fix(viewer): Unneeded manual internal link; Fix target is in LaTeX * Rerun tests
1 parent 26cd61c commit b94120f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/viewer/src/components/Shared/Typeset.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
}
2929
}
3030
31-
/**
32-
* We're adding "real" <a/> tags to the DOM, even for parsed internal
33-
* links, but we really want to use the router to navigate. So we manually
34-
* bind click handlers to trigger navigation.
35-
*/
3631
for (const link of container.getElementsByClassName('internal-link')) {
3732
/**
3833
* Unloading a DOM node should remove any bound listeners, but it's
@@ -48,10 +43,6 @@
4843
})
4944
5045
link.setAttribute('_wired', 'true')
51-
link.addEventListener('click', e => {
52-
e.preventDefault()
53-
goto((e.target as HTMLAnchorElement).href)
54-
})
5546
}
5647
}
5748

0 commit comments

Comments
 (0)