UNPKG

391 BJavaScriptView Raw
1/**
2 * @author Titus Wormer
3 * @copyright 2016 Titus Wormer
4 * @license MIT
5 * @module rehype
6 * @fileoverview HTML processor powered by plugins.
7 */
8
9'use strict';
10
11/* Dependencies. */
12var unified = require('unified');
13var parse = require('rehype-parse');
14var stringify = require('rehype-stringify');
15
16/* Expose. */
17module.exports = unified()
18 .use(parse)
19 .use(stringify)
20 .abstract();