Skip to content

Commit 98d7c62

Browse files
committed
Add example of defaults
1 parent f3722a1 commit 98d7c62

File tree

1 file changed

+34
-9
lines changed

1 file changed

+34
-9
lines changed

README.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ make sure you **import this before those plugins**.
1818

1919
Add the plugin to your `gatsby-config.js`.
2020
```js
21-
plugins: [
22-
{
23-
resolve: 'gatsby-transformer-remark',
24-
options: {
25-
plugins: [
26-
'gatsby-remark-mermaid'
27-
]
21+
{
22+
plugins: [
23+
{
24+
resolve: 'gatsby-transformer-remark',
25+
options: {
26+
plugins: [
27+
'gatsby-remark-mermaid'
28+
]
29+
}
2830
}
29-
}
30-
]
31+
]
32+
}
3133
```
3234

3335
Now you can use markdown:
@@ -49,3 +51,26 @@ To generate:
4951
| --- | --- | --- |
5052
| `language` | `"mermaid"` | Set this value to the identifier which will replace the code block. If you set it to `"graph"` then you can create graphs using ` ```graph ...`. |
5153
| `theme` | `"default"` | Set this value to one of `"dark"`, `"neutral"`, `"forrest"`, or `"default"`. You can preview the themes in the [Live Editor](https://mermaidjs.github.io/mermaid-live-editor) |
54+
55+
### Defaults
56+
57+
```js
58+
{
59+
plugins: [
60+
{
61+
resolve: 'gatsby-transformer-remark',
62+
options: {
63+
plugins: [
64+
{
65+
resolve: 'gatsby-remark-mermaid',
66+
options: {
67+
language: 'mermaid',
68+
theme: 'default'
69+
}
70+
}
71+
]
72+
}
73+
}
74+
]
75+
}
76+
```

0 commit comments

Comments
 (0)