Back to Explore

rehypejs/rehype-autolink-headings

GitHub
1 watchersOpen source

Last release: 9/16/2024

rehype-autolink-headings is a unified (rehype) plugin that scans HTML headings (`h1` through `h6`) for existing `id` properties and injects a link inside each heading that points back to itself. It’s useful for long documents where you want readers to easily share or navigate to specific sections, with configurable placement and link content.

Project status

  • The source appears actively maintained, with recent updates through version 7.1.1 on 2024-09-16 (and prior updates in 2023-11 and 2023-09), indicating ongoing development rather than maintenance-only status.
  • Update cadence is moderate and infrequent rather than continuous, with one update in late 2023 (7.1.0) and another in late 2024 (7.1.1), following a larger change in 2023-09 (7.0.0).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 7.1.1

    9/16/2024

    Release 7.1.1 mainly restructures TypeScript typings, moving inline JSDoc typedefs into dedicated declaration files and enabling declaration maps. It also removes an unused runtime dependency and updates a few CI and dev tooling components.

  • 7.1.0

    11/8/2023

    Release 7.1.0 adds two new capabilities to rehype-autolink-headings: a `headingProperties` option and support for using `content` when `behavior` is set to `wrap`. The implementation also changes internal option handling and extends the `wrap` behavior logic to insert or replace link children based on how `content` is provided.

    Features
  • 7.0.0

    9/5/2023

    rehype-autolink-headings 7.0.0 updates the package for modern tooling (notably Node.js 16+) and refreshes the public API types and module packaging (exports field). It also adds support for computing link properties via a function and updates documentation/examples.

    BreakingFeatures