Skip to content

Commit d5a0b79

Browse files
committed
document config.markdown + better mdx-loader retrocompat
1 parent 97833e4 commit d5a0b79

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/docusaurus-mdx-loader/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,13 @@ A function to provide the metadataPath depending on current loaded MDX path that
4747

4848
### `markdownConfig`
4949

50-
The global Docusaurus Markdown config (`config.markdown`).
50+
The global Docusaurus Markdown config (`config.markdown`), that plugin authors should forward:
51+
52+
```js
53+
const loader = {
54+
loader: require.resolve('@docusaurus/mdx-loader'),
55+
options: {
56+
markdownConfig: siteConfig.markdown,
57+
},
58+
};
59+
```

0 commit comments

Comments
 (0)