Disable flourite for now, ref: #64

This commit is contained in:
Niek van der Maas 2023-03-22 09:28:59 +01:00
parent 55713782a7
commit 8724455d96
1 changed files with 3 additions and 2 deletions

View File

@ -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) {