mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Fix svelte-highlight error, fixes #384
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user