Package Exports
- rehype-stringify
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-stringify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rehype-stringify

Compiler for unified. Stringifies an hast syntax tree to HTML. Used in the rehype processor.
Installation
npm:
npm install rehype-stringify
Usage
var unified = require('unified');
var parse = require('rehype-parse');
var stringify = require('rehype-stringify');
process.stdin
.pipe(unified())
.use(parse)
.use(stringify)
.pipe(process.stdout, {
quoteSmart: true,
closeSelfClosing: true,
omitOptionalTags: true,
entities: {useShortestReferences: true}
});
API
processor.use(stringify[, options])
Configure the processor
to stringify hast syntax trees
to HTML.
options
Options can be passed when using processor.use(stringify, options)
,
and later through processor.stringify()
,
processor.process()
, or processor.pipe()
.
All settings are passed to hast-util-to-html
.