UNPKG

rehype

Version:

HTML processor powered by plugins part of the unified collective

11 lines (9 loc) 341 B
// Note: types exposed from `index.d.ts` import rehypeParse from 'rehype-parse' import rehypeStringify from 'rehype-stringify' import {unified} from 'unified' /** * Create a new unified processor that already uses `rehype-parse` and * `rehype-stringify`. */ export const rehype = unified().use(rehypeParse).use(rehypeStringify).freeze()