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 {
    /* ... */
  }
})

With the setup, you can provide the custom setting for KaTex Options. Refer to the type definitions and their documentation for more details.

Released under the MIT License.