Skip to content

Commit

Permalink
generate anchors on headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sulha199 committed Sep 1, 2022
1 parent 9f28af9 commit 23eb46f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ module.exports = {
rel: "nofollow"
}
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
elements: [`h2`, 'h3'],
},
},
`gatsby-remark-code-titles`,
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
Expand Down
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"gatsby-plugin-image": "^2.7.0",
"gatsby-plugin-react-helmet": "^5.7.0",
"gatsby-plugin-sharp": "^4.7.0",
"gatsby-remark-autolink-headers": "^5.22.0",
"gatsby-remark-copy-linked-files": "^5.7.0",
"gatsby-remark-external-links": "^0.0.4",
"gatsby-remark-images": "^6.7.0",
Expand Down

0 comments on commit 23eb46f

Please sign in to comment.