diff --git a/src/lib/nodes/Anchor.svelte b/src/lib/nodes/Anchor.svelte index 06842a7..4ccb7e3 100644 --- a/src/lib/nodes/Anchor.svelte +++ b/src/lib/nodes/Anchor.svelte @@ -6,6 +6,7 @@ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 0e56966..44f773b 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -35,6 +35,11 @@ function interactive({ type }: (typeof $root)[number]) { return $visibility[type] && type !== 'text' && type !== 'anchor'; } + + function reset() { + background.send('ext/highlight', null); + hovered.set(undefined); + } -