Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-remark-slug

Add slug id to h1~h6 elements.

Install

npm install --save gatsby-remark-slug

How to use

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

Options

TBD.

Reference

© 2023 Gatsby, Inc.