2.0.0-azuread-alpha.43 • Published 4 years ago

@docusaurus-azuread/mdx-loader v2.0.0-azuread-alpha.43

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@docusaurus-azuread/mdx-loader

Docusaurus webpack loader of MDX

Installation

yarn add @docusaurus-azuread/mdx-loader

Usage

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

Options

rehypePlugins

Array of rehype plugins to manipulate the MDXHAST

remarkPlugins

Array of remark plugins to manipulate the MDXAST

metadataPath

A function to provide the metadataPath depending on current loaded MDX path that will be exported as the MDX metadata.