Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Adding explanation about available option `offsetY` to solve issue gatsbyjs#5061
Signed-off-by: Robin Cussol <[email protected]>
  • Loading branch information
RobinCsl authored May 3, 2018
1 parent 129c6b8 commit 892ec08
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/gatsby-remark-autolink-headers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,28 @@ module.exports = {
],
};
```

## Options

* `offsetY`: Signed integer, vertical offset value in pixels, e.g.

```javascript
// In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
offsetY: `100`,
},
}
],
},
},
],
};
```

0 comments on commit 892ec08

Please sign in to comment.