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
Electronic Lab Notebook (ELN) Software Icon
Electronic Lab Notebook (ELN) Software

Ideal for any lab. Whether you’re just starting up, a small or large academic institution, or a globally operating company.

eLabJournal is an all-in-one Electronic Lab Notebook (ELN) software that includes sample tracking and protocol management modules.
Learn More
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