Disable flourite for now, ref: #64
This commit is contained in:
		
							parent
							
								
									55713782a7
								
							
						
					
					
						commit
						8724455d96
					
				| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
<script lang="ts">
 | 
					<script lang="ts">
 | 
				
			||||||
  import { Highlight } from 'svelte-highlight'
 | 
					  import { Highlight } from 'svelte-highlight'
 | 
				
			||||||
  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'
 | 
				
			||||||
| 
						 | 
					@ -38,7 +38,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // If no language is set, try to detect it using flourite
 | 
					  // If no language is set, try to detect it using flourite
 | 
				
			||||||
  if (!lang) {
 | 
					  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) {
 | 
					  switch (lang) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue