marknative

A Markdown rendering engine that outputs paginated PNG or SVG pages without a browser. It supports tables, code highlighting and math, and runs on the server.

Share on XLicense: MIT

Overview

marknative is a Markdown rendering engine that turns Markdown into paginated PNG or SVG pages without a browser, Chromium or DOM. It parses Markdown into a typed document model, runs its own layout and pagination, and paints each page with a native 2D canvas API. The output is deterministic and suits server-side use. It supports CommonMark, GFM, Shiki code highlighting and MathJax formulas.

Key features

  • Paginated PNG and SVG output
  • CommonMark and GFM including tables and task lists
  • Syntax-highlighted code blocks with Shiki
  • LaTeX math through MathJax
  • Fully headless, server-side rendering

Best for

Developers who need Markdown turned into fixed-size page images on a server without running a browser. Documentation and a gallery are available online.

Upstream
liyown/marknative
Fork on GitHub
Guo-astro/marknative
Upstream stars
659
Category
Documents, media and content
Language
TypeScript
License
MIT
Forked
2026-04-02
Sync status
In syncLast synced 2026-09-29