docusaurus/packages/docusaurus-mdx-loader
2019-11-27 16:50:20 +07:00
..
src chore: add missing facebook copyright header 2019-11-27 16:50:20 +07:00
package.json chore(v2): bump deps and run yarn upgrade (#2044) 2019-11-24 23:06:25 +07:00
README.md feat(v2): composition syntax highlighting & live code editors (#1555) 2019-06-04 15:59:51 +07:00

@docusaurus/mdx-loader

Docusaurus webpack loader of MDX

Installation

yarn add @docusaurus/mdx-loader

Usage


// ...
module: {
  rules: [
    // ...
    {
      test: /\.mdx?$/,
      use: [
        'babel-loader',
        {
            loader: '@docuaurus/mdx-loader',
            options: {
                // .. See options
            }
        }
      ]
    }
  ]
}

Options

rehypePlugins

Array of rehype plugins to manipulate the MDXHAST

remarkPlugins

Array of remark plugins to manipulate the MDXAST