feat: integrate prismjs components importer for modular syntax highlighting

Enhances PrismJS usage by adopting a dedicated importer tool to manage language components, improving maintainability and reducing bundle size.
This commit is contained in:
ccbikai
2024-08-11 15:36:36 +08:00
parent f2304673b3
commit ca765c9b18
3 changed files with 38 additions and 25 deletions

View File

@@ -25,6 +25,7 @@
"lru-cache": "^11.0.0",
"ofetch": "^1.3.4",
"prismjs": "^1.29.0",
"prismjs-components-importer": "^0.2.0",
"sanitize-html": "^2.13.0"
},
"devDependencies": {