Skip to content

Commit

Permalink
document config.markdown + better mdx-loader retrocompat
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Dec 7, 2022
1 parent 97833e4 commit d5a0b79
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/docusaurus-mdx-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@ A function to provide the metadataPath depending on current loaded MDX path that

### `markdownConfig`

The global Docusaurus Markdown config (`config.markdown`).
The global Docusaurus Markdown config (`config.markdown`), that plugin authors should forward:

```js
const loader = {
loader: require.resolve('@docusaurus/mdx-loader'),
options: {
markdownConfig: siteConfig.markdown,
},
};
```

0 comments on commit d5a0b79

Please sign in to comment.