Fix `svelte-highlight` error, fixes #384
This commit is contained in:
		
							parent
							
								
									ec76a963af
								
							
						
					
					
						commit
						abf7137fb9
					
				| 
						 | 
					@ -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 = ''
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue