docusaurus/packages/docusaurus-mdx-loader
2019-12-06 14:15:48 +07:00
..
src fix(v2): toc should not be broken for heading with html inline code (#2067) 2019-11-28 21:33:51 -08:00
package.json v2.0.0-alpha.38 2019-12-06 14:15:48 +07:00
README.md misc(v2): update mdx loader plugin README (#2085) 2019-12-03 12:07:46 -08:00

@docusaurus/mdx-loader

Docusaurus webpack loader of MDX

Installation

yarn add @docusaurus/mdx-loader

Usage


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

Options

rehypePlugins

Array of rehype plugins to manipulate the MDXHAST

remarkPlugins

Array of remark plugins to manipulate the MDXAST