Skip to content
HTML processor powered by plugins part of the @unifiedjs collective
JavaScript HTML
Branch: master
Clone or download
Latest commit 17cd241 Aug 14, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Update website Aug 14, 2019
packages Update sponsors Aug 10, 2019
script Update dev-dependencies Nov 17, 2018
test Fix event handlers in tests Jul 22, 2019
.editorconfig Refactor code-style to use `xo` Jul 26, 2016
.gitignore Add `yarn.lock` to `.gitignore` Jun 10, 2018
.npmrc Add `.npmrc` Jun 10, 2018
.prettierignore Refactor code-style Jun 10, 2018
.travis.yml Fix token Jun 3, 2019 Add changelog Nov 17, 2018
lerna.json Fix lerna Nov 17, 2018
license Move `LICENSE` > `license` Nov 17, 2018
logo.svg Update logo Nov 17, 2018
package.json Update dev-dependencies Jul 22, 2019 Update website Aug 14, 2019


Build Coverage Downloads Size Sponsors Backers Chat

rehype is an HTML processor powered by plugins part of the unified collective.


rehype is an ecosystem of plugins for processing HTML to do all kinds of things: format it, minify it, or wrap it programmatically into a document.

This repository contains the following projects:

  • rehype-parse — Parse HTML documents to syntax trees
  • rehype-stringify — Stringify syntax trees to HTML documents
  • rehype — Programmatic interface with both rehype-parse and rehype-stringify
  • rehype-cli — Command-line interface wrapping rehype



🥇 Gatsby

🥇 Netlify



Read more about the unified collective on Medium »


As rehype works on HTML, and improper use of HTML can open you up to a cross-site scripting (XSS) attack, use of rehype can also be unsafe. Use rehype-sanitize to make the tree safe.


See in rehypejs/.github for ways to get started. See for ways to get help. Ideas for new plugins and tools can be posted in rehypejs/ideas.

A curated list of awesome rehype resources can be found in awesome rehype.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.


MIT © Titus Wormer

You can’t perform that action at this time.