md2pdf is a static, browser-first Markdown to PDF tool. It converts Markdown locally with Pandoc and SwiftLaTeX, shows a live PDF preview, and keeps image handling inside the browser.
- Client-Side Processing: Converts Markdown to PDF entirely within your browser—no backend server required.
- Live Preview: See your PDF output update in real-time as you type.
- Local Image Handling: Insert and process images directly in the browser.
- Privacy First: Your data never leaves your device.
- Vanilla HTML, CSS, and JavaScript.
- Pandoc compiled to WebAssembly for Markdown -> LaTeX
- SwiftLaTeX / PdfTeX in the browser for PDF generation
- EasyMDE and CodeMirror for the editor experience
- Eisvogel (by Wandmalfarben) for the beautiful Pandoc LaTeX template
Tip: Works excellent with the Outline "Copy Markdown" feature for beautifully formatted PDF creation.
Serve the repository with any small static HTTP server, then open the app in a browser.
-
Clone the repository:
git clone https://github.com/libnewton/md2pdf.git cd md2pdf -
Start a local server:
python -m http.server 8000
-
Open
http://localhost:8000in your browser.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is MIT licensed.