mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
✨ 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:
parent
3da7a083c8
commit
ee25e17f69
13 changed files with 264 additions and 83 deletions
|
@ -16,6 +16,9 @@ function setupScrollbar() {
|
|||
autoHide: 'scroll',
|
||||
autoHideDelay: 800,
|
||||
},
|
||||
overflow: {
|
||||
x: 'hidden',
|
||||
},
|
||||
})
|
||||
|
||||
bodyElement.setAttribute('data-scrollbar-initialized', 'true')
|
||||
|
@ -33,6 +36,9 @@ function setupScrollbar() {
|
|||
autoHide: 'leave',
|
||||
autoHideDelay: 500,
|
||||
},
|
||||
overflow: {
|
||||
y: 'hidden',
|
||||
},
|
||||
})
|
||||
|
||||
pre.setAttribute('data-scrollbar-initialized', 'true')
|
||||
|
@ -50,6 +56,9 @@ function setupScrollbar() {
|
|||
autoHide: 'leave',
|
||||
autoHideDelay: 500,
|
||||
},
|
||||
overflow: {
|
||||
x: 'hidden',
|
||||
},
|
||||
})
|
||||
|
||||
tocElement.setAttribute('data-scrollbar-initialized', 'true')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue