@mdwrk/markdown-renderer-core
v1.1.6
Published
Self-contained markdown parsing, CommonMark-core-oriented HTML rendering, heading extraction, and HTML document serialization for MdWrk.
Maintainers
Readme
@mdwrk/markdown-renderer-core
Headless markdown rendering core
This package provides self-contained markdown parsing, profile handling, heading extraction, HTML rendering, and full HTML document generation for MdWrk consumers.
Why
Use it when you need markdown output without pulling in React.
What
- Synchronous and asynchronous markdown-to-HTML rendering helpers.
- Heading extraction, slug generation, frontmatter helpers, and profile support.
- HTML document generation for standalone output.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/markdown-renderer-coreUsage
import { renderMarkdownToHtmlSync } from "@mdwrk/markdown-renderer-core";
const html = renderMarkdownToHtmlSync("# Hello\n\nMdWrk renderer core.", {
profile: "gfm-default",
htmlHandling: "escape",
});Related
- Packages index - family and package navigation
- Root README - repo overview
