rehype-slug

plugin to add `id` attributes to headings (by rehypejs)

Rehype-slug Alternatives

Similar projects and alternatives to rehype-slug

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better rehype-slug alternative or higher similarity.

rehype-slug reviews and mentions

Posts with mentions or reviews of rehype-slug. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-14.
  • Building an Autolink Heading Component for React Navigation
    3 projects | dev.to | 14 Nov 2023
    I'm using the algorithm from github-slugger to create the header link and ID. It's the same one used by GitHub for their section headings and also by rehype-slug, the project I used as inspiration for this one.
  • MDX autolink headings
    5 projects | dev.to | 4 Jan 2023
    The heading component renders an a tag, with a href which points to the id which was generated by the rehype-slug and passed as prop to our component. The a tag uses the group class, this allows us to apply styling to children if the parent is hovered. Also we use the relative class, because we want to position an icon absolute to the left of the heading.
  • Creating my personal website with Astro, Tailwind CSS, and Nx
    16 projects | dev.to | 25 Jan 2022
    So to achieve my goals, I configured the rehype-slug and rehype-autolink-headings plugins to generate links to the headings in the blog post. I also configured the rehype-external-links plugin to add the target="_blank" and rel="nofollow noopener noreferrer" attributes to external links, as well as adding an icon to them.
  • A note from our sponsor - SurveyJS
    surveyjs.io | 19 Apr 2024
    With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →

Stats

Basic rehype-slug repo stats
3
178
5.9
8 months ago
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com