docusaurus/packages/docusaurus-mdx-loader
2019-10-21 19:28:36 +07:00
..
src feat(v2): allow custom heading component (#1687) 2019-07-23 12:13:47 +07:00
package.json v2.0.0-alpha.29 2019-10-21 19:28:36 +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