mdtypst v0.9
Statically hosted, URL-driven Markdown→PDF renderer
Features
- URL-Driven: Simply provide a link to any markdown file
- YAML Frontmatter (optional): Parse document metadata (title, author, date, page setup)
- Typst WASM: Client-side PDF compilation with high-quality typesetting
- Markdown Rendering: Uses Typst
@preview/cmarker when available, with a built-in fallback renderer
- Mermaid Diagrams: Mermaid fences rendered to SVG and embedded into Typst
- Typst Sidecar Templates: Optional
.mdtypst.typ next to Markdown for fully native styling
- Zero Server Compute: Everything runs deterministically in your browser
- Native Display: View PDF directly or download for offline use
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.
How It Works
- Fetch: Retrieve Markdown document from specified URL
- Parse: Extract optional YAML frontmatter metadata
- Convert: Transform Markdown to Typst (cmarker or fallback)
- Compile: Generate PDF using Typst WASM engine
- 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
JavaScript
Minimal orchestration
Deployment
Deploy to any static hosting service (GitHub Pages, Netlify, Vercel, CloudFlare Pages):
- Upload
render.html and render.js
- No build process required
- No server configuration needed
- Ready to use immediately