docusaurus/packages/docusaurus-mdx-loader
Endi 9862a6821a feat(v2): allow non sidebar category to be first item of sidebar (#2032)
* feat(v2): allow non sidebar category to be first item of sidebar

* better error messages

* edit the react component

* Update website/docs/sidebar.md

* nits

* add @babel/plugin-transform-runtime
2019-11-23 20:08:19 -08:00
..
src chore(v2): (nits) remove redundant lines 2019-11-21 14:20:49 +07:00
package.json feat(v2): allow non sidebar category to be first item of sidebar (#2032) 2019-11-23 20:08:19 -08: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