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:

setup/katex.ts
ts
import {  } from '@slidev/types'

export default (() => {
  return {
    : 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.