feat: add KaTeX support and update theme configuration

- Update @astrojs/mdx and astro dependencies
- Enable KaTeX in theme config for mathematical formula rendering
- Update scrollbar component to hide overflow content
- Add KaTeX mathematical demonstration document
- Update multilingual theme guides to include KaTeX configuration
This commit is contained in:
radishzzz 2025-04-01 02:13:23 +01:00
parent 3da7a083c8
commit ee25e17f69
13 changed files with 264 additions and 83 deletions

View file

@ -56,7 +56,7 @@ color: {
// 暗色模式
dark: {
// 高亮顏色
// 用於標題、hover
// 用於站點標題、滑鼠懸停效果
primary: 'oklch(92% 0.005 298)'
// 次要顏色
// 用於普通文本
@ -84,6 +84,8 @@ global: {
dateFormat: 'YYYY-MM-DD' // YYYY-MM-DD, MM-DD-YYYY, DD-MM-YYYY, MONTH DAY YYYY, DAY MONTH YYYY
// 標題與副標題之間的距離
titleGap: 2 // 1, 2, 3
// 啟用 KaTeX 數學公式渲染
katex: true // true, false
}
```