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:

import { defineKatexSetup } from '@kolibry/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.