remark-rehype is a plugin for the unified (remark) Markdown ecosystem that converts a Markdown syntax tree into an HTML syntax tree, enabling use of rehype plugins after the conversion. It is useful when you want to turn Markdown into HTML and then process or format that HTML with tools from the rehype ecosystem.
Project status
- Actively maintained: The repo shows ongoing work, with the most recent update on 2025-04-02 (11.1.2) and prior updates in 2024-09-19 (11.1.1) and 2024-01-11 (11.1.0).
- Update cadence: The gaps between recent updates look roughly on the order of 7 to 8 months, suggesting a steady, periodic maintenance pattern rather than inactivity.
AI summary generated Today
Recent updates
11.1.2
4/2/2025Release 11.1.2 primarily addresses TypeScript typing for remark-rehype in bridge mode when a `processor` is provided. The commit and diff also include a number of repository-level changes (CI, formatting/docs, and test adjustments), but no clear runtime behavior changes are visible in the provided diff.
11.1.1
9/19/2024Release 11.1.1 primarily fixes mutate-mode behavior when used through unified-engine, plus internal typing/documentation updates. It also modernizes CI/development tooling and adjusts distributed type output (declaration maps).
11.1.0
1/11/2024Release 11.1.0 updates remark-rehype to forward the unified vfile instance to mdast-util-to-hast by including it in the options object. The change also adjusts the internal option typing to omit the special `file` key from user-provided options, and bumps the dev dependency `c8` from 8.x to 9.x.
Features11.0.0
9/19/2023remark-rehype 11.0.0 upgrades to newer remarkjs ecosystem dependencies (notably mdast-util-to-hast 13 and unified 11) and aligns the package with newer Node.js and module resolution expectations. The release notes document the Node.js 16 requirement, a move away from private APIs, removal of the exported Processor type, and new named exports for default footnote back label/content.
BreakingFeatures10.1.0
12/3/2021Release 10.1.0 primarily adds named exports, `defaultHandlers`, `all`, and `one`, re-exported from `mdast-util-to-hast`, while keeping the default export as the `remark-rehype` plugin. The README and tests were updated accordingly to reflect the new public API.
Features10.0.1
11/5/2021Release 10.0.1 is described in the notes as a documentation improvement only. However, the actual diff includes build and packaging changes, including moving the implementation into a new lib/ entry and updating package publication settings.
10.0.0
10/3/2021remark-rehype 10.0.0 updates its mdast-util-to-hast dependency to align footnote rendering with GitHub. It also adds explicit support for passing a nullish `processor` argument when using the plugin, and includes a regression test for that usage.
Features9.1.0
9/23/2021Release 9.1.0 makes a change intended to ensure `raw` is included in the `hast` type registry. The diff also bumps some development dependencies (not mentioned in the release notes).
9.0.0
8/6/2021Version 9.0.0 converts remark-rehype to ESM, adds JSDoc-driven TypeScript type generation, and updates dependencies (notably mdast-util-to-hast to v11.0.0). The core plugin implementation was rewritten to use `mdast-util-to-hast`'s `toHast` export and to publish types from `index.js`.
Breaking8.1.0
4/13/2021Release 8.1.0 primarily updates the underlying conversion logic dependency, mdast-util-to-hast. The included diff also shows repository-wide CI and tooling changes (Travis removed, GitHub Actions added) plus several development dependency bumps, which are not described in the release notes.