Markdown
How to write docs with the MDC syntax.
VS Code Integration
The MDC extension
Nuxt MDC is a VS Code extension that provides syntax highlighting and autocompletion for the MDC syntax.
Launch VS Code Quick Open Ctrl + P, paste the following command, and press enter.
Enable component metadata completions
Requires Nuxt.mdc >= 0.3.1
VSCode settings
.vscode/settings.json
Install the nuxt-component-meta
module
Add nuxt-component-meta dependency to your project:
Add nuxt-component-meta to the modules section of your nuxt.config.ts and optionally configure the module:
nuxt.config.ts
Once your project has been built or running on the dev server, the extension will automatically scan your project for component metadata and provide suggestions based on the components discovered with zero additional configuration.
Tips
Hide title from toc
0.4.7
Set title id
to hide-toc
will hide the heading from toc.