rehype/unified HTML5 generation pipeline
description
The rehype/unified ecosystem (rehype, remark-rehype, and related unified plugins) for parsing and producing HTML5 documents programmatically, with type-safe support for citation nodes as the document tree is built or transformed -- the toolchain half of the style-html skill, complementing the markup conventions above.
html snippet
import { unified } from "unified";
import remarkParse from "remark-parse";
import remarkRehype from "remark-rehype";
import rehypeStringify from "rehype-stringify";
const html = await unified()
.use(remarkParse)
.use(remarkRehype)
.use(rehypeStringify)
.process(markdownWithCitations);spec reference
rehype/unified ecosystem
provenance
created 2026-07-02 04:46:57 · JSON