From abf7137fb90eebf4f7c0263572290e7268e9ec84 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Fri, 22 Dec 2023 11:00:03 +0100 Subject: [PATCH] Fix `svelte-highlight` error, fixes #384 --- src/lib/Code.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Code.svelte b/src/lib/Code.svelte index 4ad936a..f570a10 100644 --- a/src/lib/Code.svelte +++ b/src/lib/Code.svelte @@ -3,7 +3,7 @@ import flourite from 'flourite' // Import both dark and light styles - import { github, githubDark } from 'svelte-highlight/styles' + import { github, githubDark } from 'svelte-highlight/styles/index' // Style depends on system theme const style = window.matchMedia('(prefers-color-scheme: dark)').matches ? githubDark : github @@ -25,7 +25,7 @@ plaintext, yaml, type LanguageType - } from 'svelte-highlight/languages' + } from 'svelte-highlight/languages/index' export const type: 'code' = 'code' export const raw: string = ''