Open-source web app to write markdown, render it safely, and export to PDF in one click.
- Live markdown editor and preview
- Sanitized HTML output (
DOMPurify) - One-click PDF export (
html2pdf.js) - Runs fully in the browser (no backend required)
- Deployable on any static hosting platform
- React + TypeScript + Vite
markedfor markdown parsingdompurifyfor sanitizationhtml2pdf.jsfor client-side PDF generation
npm install
npm run devApp runs at http://localhost:5173 by default.
npm run build
npm run previewThis project outputs static files (dist), so it can be hosted on any static platform.
- Build command:
npm run build - Output directory:
dist
- Cloudflare Pages
- GitHub Pages
- Netlify
- Vercel
npm run build
npm run deploy:pages- License: MIT
- Contributions via pull request are welcome. See
CONTRIBUTING.md.
This project sanitizes rendered markdown before injecting HTML into the preview.
Security headers are defined in public/_headers (supported by Cloudflare Pages; use equivalent headers on other hosts).