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