Skip to content

Configure KaTeX ​

Environment: node
This setup function will only run on Node.js environment, you can have access to Node's API.

Create ./setup/katex.ts with the following content:

ts
import { 
defineKatexSetup
} from '@slidev/types'
export default
defineKatexSetup
(() => {
return {
maxExpand
: 2000,
/* ... */ } })

The return value should be the custom options for KaTeX. Refer to KaTeX's documentation or the type definition for the full options list.

Released under the MIT License.