JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1336418
  • Score
    100M100P100Q196815F
  • License MIT

HTML compiler for rehype

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 Build Status Coverage Status Chat

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.

License

MIT © Titus Wormer