Installation

Using MDX in your Nuxt project is only one command away.

Installation

Requires a minimum Nuxt version of v2.10.0. See nuxt/nuxt.js#5854

Add @nuxtjs/mdx as a development dependency to your project:

yarn add --dev @nuxtjs/mdx
npm install --save-dev @nuxtjs/mdx

Then add it to the buildModules section of your nuxt.config.js:

nuxt.config.js
export default {
  buildModules: ['@nuxtjs/mdx']
}

If you are using nuxt < 2.9.0, use the modules property instead.

That's it! You can now start writing MDX files in your Nuxt app ✨