rehype is a tool that transforms HTML with plugins. These plugins can inspect and change the HTML. You can use rehype on the server, the client, CLIs, deno, etc. rehype is an ecosystem of plugins that work with HTML as structured data, specifically ASTs (abstract syntax trees). ASTs make it easy for programs to deal with HTML. We call those programs plugins. Plugins inspect and change trees. You can use the many existing plugins or you can make your own. You can use rehype for many different things. unified is the core project that transforms content with ASTs. rehype adds support for HTML to unified. hast is the HTML AST that rehype uses. Depending on the input you have and output you want, you can use different parts of rehype. If the input is HTML, you can use rehype-parse with unified. If the output is HTML, you can use rehype-stringify with unified If both the input and output are HTML, you can use rehype on its own.

Features

  • Learn HTML, see MDN and WHATWG HTML
  • You can use plugins to format or minify HTML
  • You can use plugins to change HTML
  • rehype plugins deal with HTML
  • The rehype organization and the unified collective as a whole is fully typed with TypeScript.
  • Projects maintained by the unified collective are compatible with all maintained versions of Node.js

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

MIT License

Follow rehype

rehype Web Site

Other Useful Business Software
$300 in Free Credit Across 150+ Cloud Services Icon
$300 in Free Credit Across 150+ Cloud Services

VMs, containers, AI, databases, storage | build anything. No commitment to start.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale with Google Cloud.
Start Building Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rehype!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML

Registered

2023-04-27