mdtypst v0.9

Statically hosted, URL-driven Markdown→PDF renderer

Features

Try It Now

Click the button below to render the included sample document:

Render Sample Document

Use Your Own Document

Navigate to the following URL format:

render.html?src=YOUR_MARKDOWN_URL

Replace YOUR_MARKDOWN_URL with the URL of any publicly accessible Markdown file.

Fixture Browser (Examples)

Browse the repository's Markdown fixtures and render them in your browser. Clicking a file opens render.html with ?src=....

Applies to fixture links below.
Loading fixture list…

How It Works

  1. Fetch: Retrieve Markdown document from specified URL
  2. Parse: Extract optional YAML frontmatter metadata
  3. Convert: Transform Markdown to Typst (cmarker or fallback)
  4. Compile: Generate PDF using Typst WASM engine
  5. Render: Display PDF in browser or offer download

All processing happens client-side with zero server involvement. Deterministic and reproducible.

Technology Stack

Typst WASM
PDF compilation
cmarker
Markdown parsing
Mermaid
Mermaid diagrams
JavaScript
Minimal orchestration

Deployment

Deploy to any static hosting service (GitHub Pages, Netlify, Vercel, CloudFlare Pages):

  1. Upload render.html and render.js
  2. No build process required
  3. No server configuration needed
  4. Ready to use immediately
Try Demo View on GitHub