We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26cd61c commit b94120fCopy full SHA for b94120f
1 file changed
packages/viewer/src/components/Shared/Typeset.svelte
@@ -28,11 +28,6 @@
28
}
29
30
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
- */
36
for (const link of container.getElementsByClassName('internal-link')) {
37
/**
38
* Unloading a DOM node should remove any bound listeners, but it's
@@ -48,10 +43,6 @@
48
43
})
49
44
50
45
link.setAttribute('_wired', 'true')
51
- link.addEventListener('click', e => {
52
- e.preventDefault()
53
- goto((e.target as HTMLAnchorElement).href)
54
- })
55
46
56
47
57
0 commit comments