Skip to content

Commit

Permalink
Updates doc
Browse files Browse the repository at this point in the history
  • Loading branch information
florentb committed Dec 30, 2020
1 parent 6fa5750 commit 8f3b21d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ const wrap = require('rehype-wrap-all')
const rehype = require('rehype')

rehype()
.use(wrap, {/* options */})
.use(wrap, /* options (object or array) */)
.process(/* html string */)
.then(/* vfile */)
.catch(/* handle any errors */)
```

> Note that you can use an **array of options** if you want to wrap multiple elements with different wrappers
## Options

### `wrap.selector`
Expand Down

0 comments on commit 8f3b21d

Please sign in to comment.