Skip to content

libnewton/md2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md2pdf

License: MIT

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.

Features

  • 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.

Tech stack

  • 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.

Getting Started

Local use

Serve the repository with any small static HTTP server, then open the app in a browser.

  1. Clone the repository:

    git clone https://github.com/libnewton/md2pdf.git
    cd md2pdf
  2. Start a local server:

    python -m http.server 8000
  3. Open http://localhost:8000 in your browser.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

This project is MIT licensed.

About

Browser only wasm-based Markdown to PDF, feat. Eisvogel Template

Topics

Resources

License

Stars

Watchers

Forks

Contributors