NextraConfig
Type
Exported from nextra
.
Fields
Name | Type | Default |
---|---|---|
defaultShowCopyCode | boolean Enable 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 | boolean Option to automatically optimizing your static image imports with the Markdown syntax. Tip
Example: | true |
readingTime | boolean Adds 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 | boolean Enable or disable syntax highlighting. | true |
mdxOptions | MdxOptions Options 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 | string Option to serve your | "/" |
unstable_shouldAddLocaleToLinks | boolean Prefixes locale to all links in the page map information. Useful for i18n when you don’t want to use Nextra’s | false |