rehype-slug-custom-id

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

test

npm run build && npm run format && npm run test-coverage

build

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

format

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

test-api

node --conditions development test.js

test-coverage

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

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 3/10/2022

Downloads

Maintainers