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

@ -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
}
```
@ -192,7 +194,6 @@ preload: {
customUmamiAnalyticsJS: 'https://js.radishzz.cc/jquery.min.js'
}
```
## Создание Новой Статьи
Создайте новый файл с расширением `.md` или `.mdx` в директории `src/content/posts/` и добавьте метаданные Front Matter в верхней части файла.