Skip to content

Commit

Permalink
more docs around gatsby-remark-custom-blocks (#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuweiweiwu authored and m-allanson committed Jun 19, 2018
1 parent 2e55615 commit 5504d8b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/gatsby-remark-custom-blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,25 @@ plugins: [
},
]
```

Use the following Markdown syntax to create blocks in your file:

```
[[danger]]
| content
[[info]]
| content
```

This will wrap your contents in `div`s with the corresponding classes:

```html
<div class="custom-block-danger">
<p>content</p>
</div>

<div class="custom-block-info">
<p>content</p>
</div>
```

0 comments on commit 5504d8b

Please sign in to comment.