feat: enhance typography and image handling

- Add Heti typography plugin for improved Chinese text layout
- Implement rehype plugin to convert images to figure elements with captions
- Update UnoCSS configuration by removing typography preset
- Modify file extensions for consistency (.mjs to .js)
- Add new plugins for admonition, GitHub card, and reading time components
- Improve image and text styling with Heti CSS
This commit is contained in:
radishzzz 2025-02-15 21:11:17 +00:00
parent c549814c7e
commit 9d6de20b6a
19 changed files with 1006 additions and 556 deletions

View file

@ -20,7 +20,6 @@
"@astrojs/rss": "^4.0.11",
"@astrojs/sitemap": "^3.2.1",
"@rehype-pretty/transformers": "^0.13.2",
"@unocss/reset": "^65.4.3",
"astro": "^5.3.0",
"astro-compress": "^2.3.6",
"astro-robots-txt": "^1.0.0",
@ -45,20 +44,20 @@
"vite": "^6.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^4.2.0",
"@antfu/eslint-config": "^4.2.1",
"@types/markdown-it": "^14.1.2",
"@types/mdast": "^4.0.4",
"@types/node": "^22.13.4",
"@types/sanitize-html": "^2.13.0",
"@unocss/eslint-plugin": "^65.4.3",
"@unocss/preset-attributify": "^65.4.3",
"@unocss/eslint-plugin": "^65.5.0",
"@unocss/reset": "^65.5.0",
"astro-eslint-parser": "^1.2.1",
"eslint": "^9.20.1",
"eslint-plugin-astro": "^1.3.1",
"lint-staged": "^15.4.3",
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"unocss": "^65.4.3",
"unocss": "^65.5.0",
"unocss-preset-theme": "^0.14.1"
},
"lint-staged": {