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

@@ -21,6 +21,7 @@
"astro-seo": "^0.8.4",
"cheerio": "1.0.0-rc.12",
"dayjs": "^1.11.12",
"flourite": "^1.3.0",
"lru-cache": "^11.0.0",
"ofetch": "^1.3.4",
"prismjs": "^1.29.0",