Skip to content

marknativeMarkdown → PNG / SVG

Native rendering engine. No browser. No Chromium. No DOM. Deterministic, headless, fast.

marknative

Quick Start

bash
# Install globally
npm install -g marknative

# Render a file → page-01.png, page-02.png … next to the source
marknative README.md

# Dark theme, single image
marknative README.md -t dark --single-page -o preview.png

# JSON output for scripts / agents
marknative README.md --json
ts
import { renderMarkdown } from 'marknative'

const pages = await renderMarkdown(`
# Hello, marknative

Produces **paginated PNG pages** without a browser.
`)

for (const [i, page] of pages.entries()) {
  await Bun.write(`page-${i + 1}.png`, page.data)
}

Released under the MIT License.