feat(v2): allow passing remark, rehype, prismtheme to mdx-loader (#1543)

* feat(v2): allow passing remark, rehype, prismtheme to mdx-loader

* nits
This commit is contained in:
Endi 2019-06-03 14:54:27 +07:00 committed by GitHub
parent 6a814ac64a
commit 8743ee5041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 10 deletions

View file

@ -15,7 +15,7 @@ yarn add docusaurus-plugin-name
Then you add it in your site's `docusaurus.config.js` plugin arrays:
```js
```jsx
module.exports = {
plugins: [
{
@ -35,7 +35,7 @@ module.exports = {
Docusaurus can also load plugins from your local directory, you can do something like the following:
```js
```jsx
const path = require('path');
module.exports = {
@ -53,7 +53,7 @@ Plugins are modules which export a function that takes in the context, options a
For examples, please refer to several official plugins created.
```js
```jsx
const DEFAULT_OPTIONS = {
// Some defaults.
};