Gatsby Book Launch

“The missing guide to the modern web” launches on Thursday, Sep 29th: Modular: The Web’s New Architecture

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`],
    },
  },
]
© 2022 Gatsby, Inc.