Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/viewer/src/components/Shared/Typeset.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
}
}

/**
* We're adding "real" <a/> tags to the DOM, even for parsed internal
* links, but we really want to use the router to navigate. So we manually
* bind click handlers to trigger navigation.
*/
for (const link of container.getElementsByClassName('internal-link')) {
/**
* Unloading a DOM node should remove any bound listeners, but it's
Expand All @@ -48,10 +43,6 @@
})

link.setAttribute('_wired', 'true')
link.addEventListener('click', e => {
e.preventDefault()
goto((e.target as HTMLAnchorElement).href)
})
}
}

Expand Down
Loading