ANNOUNCEMENT

Gatsby is joining Netlify: Read the announcement post

ContactSign Up for Free
Community Plugin
View plugin on GitHub

gatsby-remark-heading-slug

Add slug id to h1~h6 elements.

Install

npm install --save gatsby-remark-heading-slug

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [`gatsby-remark-heading-slug`],
    },
  },
]
© 2023 Gatsby, Inc.