Package Exports
- rehype
- rehype/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rehype) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rehype

The rehype processor is an HTML processor powered by plug-ins.
- Interface by unified
- hast syntax tree
- Parses HTML to the tree with rehype-parse
- Plug-ins transform the tree
- Compiles the tree to HTML using rehype-stringify
Don’t need the parser? Or the compiler? That’s OK.
Installation
npm:
npm install rehypeUsage
var rehype = require('rehype');
var report = require('vfile-reporter');
rehype().process('<title>Hi</title><h2>Hello world!', function (err, file) {
console.log(report(err || file));
console.log(String(file));
});Yields:
no issues found
<html><head><title>Hi</title></head><body><h2>Hello world!</h2></body></html>Configuration for rehype-parse and
rehype-stringify can be set with
.data('settings', {/*...*/}).