mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 02:42:41 +02:00
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:
parent
6a814ac64a
commit
8743ee5041
7 changed files with 49 additions and 10 deletions
|
@ -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.
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue