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

    2.0.0-beta.21 • Public • Published

    @docusaurus/mdx-loader

    Docusaurus webpack loader for 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

    metadataPath

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

    Keywords

    none

    Install

    npm i @docusaurus/mdx-loader

    DownloadsWeekly Downloads

    126,991

    Version

    2.0.0-beta.21

    License

    MIT

    Unpacked Size

    84.7 kB

    Total Files

    44

    Last publish

    Collaborators

    • yangshun
    • fb
    • slorber
    • lex111
    • docusaurus-bot