- API by unified
- Parses HTML to the tree with
- hast syntax tree
- Plugins transform the tree
- Serializes the tree to HTML with
Don’t need the parser? Or the compiler? That’s OK.
If you’re in a browser, trust the content, and value a smaller bundle size, use
npm install rehype
var rehype =var report =
no issues found<html><head><title>Hi</title></head><body><h2>Hello world!</h2></body></html>
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, organization, or community you agree to abide by its terms.