Skip to content

Sterbweise/md2pdf

Repository files navigation

MD2PDF

License: MIT Next.js TypeScript Docker GitHub Repo Size Status Uptime Response

Modern Markdown and HTML to PDF converter with smart formatting and Notion export support. 100% free, open source, unlimited conversions.

image

Features

  • Dual Mode – Convert Markdown or HTML to PDF
  • Smart Page Breaks – Intelligent layout to minimize white space
  • Notion Support – Direct API import and nested ZIP export handling
  • Live Preview – Real-time rendering as you type
  • Custom Formatting – 11+ fonts, custom margins, line height, and footer text
  • File Import – Drag & drop support for .md, .html, .txt, and .zip files
  • Dark Mode – Full dark/light theme support
  • GitHub Flavored Markdown – Tables, task lists, syntax highlighting

Tech Stack

  • Next.js 16 + TypeScript
  • Tailwind CSS
  • Puppeteer (PDF generation)
  • React Markdown + GitHub Flavored Markdown

Getting Started

Local Development

git clone https://github.com/Sterbweise/md2pdf.git
cd md2pdf
npm install
npm run dev

Open http://localhost:3501

Docker

docker-compose up -d

See DOCKER.md for details.

Usage

  1. Write or paste Markdown/HTML content
  2. Preview updates in real-time
  3. Click "Options" for formatting (fonts, margins, page size)
  4. Click "Export PDF"

Notion Import: Click "Import" and upload Notion HTML exports (ZIP files supported with nested archives)

License

MIT License - see LICENSE file for details

Support


Free to use. Open source. Made with ❤️

About

✨ Modern and smart Markdown & HTML to PDF converter, Notion export support, custom formatting options, with a minimalist interface.

Topics

Resources

License

Stars

Watchers

Forks

Languages