feat: enhance code highlighting with flourite

Integrate flourite for improved language detection in code blocks, replacing manual detection logic. This enhances accuracy and supports a broader range of languages for syntax highlighting. Additionally, streamline CSS inclusion for code highlighting by importing directly from the package, reducing reliance on external CDN.
This commit is contained in:
ccbikai
2024-08-11 10:14:03 +08:00
parent 16400d5257
commit 793bc52f19
5 changed files with 26 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
---
import '../assets/item.css'
import 'prismjs/themes/prism.css'
import dayjs from '../lib/dayjs'
import { getEnv } from '../lib/env'