Disable flourite for now, ref: #64
This commit is contained in:
		
							parent
							
								
									55713782a7
								
							
						
					
					
						commit
						8724455d96
					
				| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
<script lang="ts">
 | 
			
		||||
  import { Highlight } from 'svelte-highlight'
 | 
			
		||||
  import flourite from 'flourite'
 | 
			
		||||
  // import flourite from 'flourite'
 | 
			
		||||
 | 
			
		||||
  // Import both dark and light styles
 | 
			
		||||
  import { github, githubDark } from 'svelte-highlight/styles'
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +38,8 @@
 | 
			
		|||
 | 
			
		||||
  // If no language is set, try to detect it using flourite
 | 
			
		||||
  if (!lang) {
 | 
			
		||||
    lang = flourite(text, { shiki: true }).language
 | 
			
		||||
    // lang = flourite(text, { shiki: true }).language
 | 
			
		||||
    // TODO: re-enable this once https://github.com/teknologi-umum/flourite/pull/75 is merged
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  switch (lang) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue