Global Options
Customise Fumadocs MDX
Global Options
Shared options of Fumadocs MDX.
import { defineConfig } from 'fumadocs-mdx/config';
export default defineConfig({
// global options
});
Prop | Type | Default |
---|---|---|
lastModifiedTime? | "git" | "none" | 'none' |
mdxOptions? | DefaultMDXOptions | (() => DefaultMDXOptions | Promise<DefaultMDXOptions>) | - |
MDX Options
Customise the MDX processor options for MDX files.
import { defineConfig } from 'fumadocs-mdx/config';
import rehypeKatex from 'rehype-katex';
import remarkMath from 'remark-math';
export default defineConfig({
mdxOptions: {
remarkPlugins: [remarkMath],
// When order matters
rehypePlugins: (v) => [rehypeKatex, ...v],
},
});
Some default options are applied by Fumadocs MDX, see Extended MDX Options for available options.
How is this guide?