Docusaurus Loader for MDX
$ cnpm install @docusaurus/mdx-loader
@docusaurus/mdx-loaderDocusaurus webpack loader for MDX.
yarn add @docusaurus/mdx-loader
// ...
module: {
rules: [
// ...
{
test: /\.mdx?$/,
use: [
'babel-loader',
{
loader: '@docusaurus/mdx-loader',
options: {
// .. See options
},
},
],
},
];
}
rehypePluginsArray of rehype plugins to manipulate the MDXHAST
remarkPluginsArray of remark plugins to manipulate the MDXAST
metadataPathA function to provide the metadataPath depending on current loaded MDX path that will be exported as the MDX metadata.
markdownConfigThe global Docusaurus Markdown config (config.markdown), that plugin authors should forward:
const loader = {
loader: require.resolve('@docusaurus/mdx-loader'),
options: {
markdownConfig: siteConfig.markdown,
},
};
Copyright 2013 - present © cnpmjs.org | Home |