Fix `svelte-highlight` error, fixes #384

This commit is contained in:
Niek van der Maas 2023-12-22 11:00:03 +01:00
parent ec76a963af
commit abf7137fb9
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
import flourite from 'flourite' import flourite from 'flourite'
// Import both dark and light styles // 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 // Style depends on system theme
const style = window.matchMedia('(prefers-color-scheme: dark)').matches ? githubDark : github const style = window.matchMedia('(prefers-color-scheme: dark)').matches ? githubDark : github
@ -25,7 +25,7 @@
plaintext, plaintext,
yaml, yaml,
type LanguageType type LanguageType
} from 'svelte-highlight/languages' } from 'svelte-highlight/languages/index'
export const type: 'code' = 'code' export const type: 'code' = 'code'
export const raw: string = '' export const raw: string = ''