Co-authored-by: Tarun Chauhan <tarun.chauhan@tripjack.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com> Co-authored-by: Sachin Nanayakkara <sachinnanayakkara21@gmail.com> Co-authored-by: Tarun Chauhan <tarunrajput1337@gmail.com> Co-authored-by: Armano <armano2@users.noreply.github.com> Co-authored-by: Aleksandr Vladykin <morsko1@yandex.ru> Co-authored-by: Andrew Lyons <andrew@nicols.co.uk> Co-authored-by: MetuMortis <78408599+LiberaTeMetuMortis@users.noreply.github.com> fix(create): add missing await (#8831) fix(theme-translations): remove redundant navigation text in aria label (#8842) fix(utils): handle Markdown links with spaces to route correctly (#8874) fix(theme-common): fix confusing theme error message: bad sidebar id suggestions (#8873) fix(theme-common): fix collapsible component with prefers-reduced-motion (#8906) fix(theme): add __ prefix to technical anchors, search crawlers (Algolia) should ignore them (#8909) fix(core): Correct yarn upgrade command for yarn 2.x (#8908) fix(theme-translations): fix Turkish translation for aria label "Enter key" (#8933) fix(theme): fix collapsible sidebar behavior when prefers-reduced-motion (#8971) |
||
|---|---|---|
| .. | ||
| src | ||
| .npmignore | ||
| README.md | ||
| package.json | ||
| tsconfig.json | ||
README.md
@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.