Re-enable flourite with Safari/FF fix, bump deps, fixes #64

This commit is contained in:
Niek van der Maas
2023-03-22 11:33:25 +01:00
parent 1d6791cc3c
commit b701c7e74b
3 changed files with 13 additions and 14 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,8 +38,7 @@
// If no language is set, try to detect it using flourite
if (!lang) {
// lang = flourite(text, { shiki: true }).language
// TODO: re-enable this once https://github.com/teknologi-umum/flourite/pull/75 is merged
lang = flourite(text, { shiki: true }).language
}
switch (lang) {