@robertwebbmodular/mdx-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-5237 • Public • Published

@robertwebbmodular/mdx-loader

Docusaurus webpack loader for MDX.

Installation

yarn add @robertwebbmodular/mdx-loader

Usage

// ...
module: {
  rules: [
    // ...
    {
      test: /\.mdx?$/,
      use: [
        'babel-loader',
        {
          loader: '@robertwebbmodular/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @robertwebbmodular/mdx-loader

Weekly Downloads

1

Version

0.0.0-5237

License

MIT

Unpacked Size

139 kB

Total Files

84

Last publish

Collaborators

  • robertwebbmodular