rehype-slug-custom-id

v2.0.0
plugin to add `id` attributes to headings similar to gatsby-remark-autolink-headers
unified rehype rehype-plugin plugin html heading slug id

build

rimraf --glob "*.d.ts" && tsc && type-coverage

format

remark . -qo && prettier . -w --loglevel warn && xo --fix

test-api

node --conditions development test.js

test-coverage

c8 --check-coverage --branches 80 --functions 90 --lines 90 --statements 90 --reporter lcov npm run test-api

test

npm run build && npm run format && npm run test-coverage
npm i rehype-slug-custom-id

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 6/24/2024

Downloads

Maintainers