Pipeline
The Markdown-to-HTML processing pipeline where Markdown is parsed to an mdast, remark plugins transform it, it is bridged to hast, and rehype plugins transform the HTML; Core drives it and plugins extend it.
Pipeline stages
The pipeline executes in a fixed order:
- Markdown parsing:
remarkParse,remarkFrontmatter,remarkGfm,remarkMath - Remark plugins: site‑specific and user‑provided
remarkPlugins - Bridge to HTML:
remarkRehypewithallowDangerousHtml: true - Rehype plugins:
rehypeRaw, site‑providedrehypePlugins,rehypeSlug,rehypeKatex,rehypeFormat - HTML stringification:
rehypeStringify
import { Pipeline } from "@riebeckite/core";
const pipeline = new Pipeline(contentIndex, permalinks);
const post = await pipeline.execute(markdownContent);
Related terms
Learn more
- [../framework/content-system.md]