NextraConfig Type
Exported from nextra.
Fields
| Name | Type | Default |
|---|---|---|
defaultShowCopyCode | booleanEnable the copy button for all code blocks by default, without needing to set Tip
You could still disable the button for specific blocks using | |
search | boolean | { codeblocks: boolean; }Option to enable search functionality. When enabled, it sets the Tip
When set to | {
"codeblocks": false
} |
staticImage | booleanOption to automatically optimizing your static image imports with the Markdown syntax. Tip
Example: | true |
readingTime | booleanAdds estimated reading time of Tip
The reading time is added to the front matter under the | |
latex | boolean | { renderer: "mathjax"; options?: { src?: string; config?: MathJaxConfig; }; } | { renderer: "katex"; options: Options; } | |
codeHighlight | booleanEnable or disable syntax highlighting. | true |
mdxOptions | MdxOptionsOptions specific to MDX compiling. | {
"format": "detect",
"rehypePrettyCodeOptions": {}
} |
whiteListTagsStyling | string[]Allows you to whitelist HTML elements to be replaced with components defined in the Tip
By default, Nextra only replaces | |
contentDirBasePath | stringOption to serve your | "/" |
unstable_shouldAddLocaleToLinks | booleanPrefixes locale to all links in the page map information. Useful for i18n when you don’t want to use Nextra’s | false |