프로젝트
GitHub에서 보기
Markdown2PDF (
realdennis/md2pdf
소개
개인정보 보호를 우선하는 Markdown-PDF 변환기로, 브라우저에서만 실행되며 오프라인에서도 사용할 수 있습니다.
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- +5
- in 1 month
- +10
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMarkdown2PDF (md2pdf)
English | 简体中文(Simplified Chinese) | 繁體中文(Traditional Chinese)
Live Web App: https://realdennis.github.io/md2pdf/
Convert Markdown files to clean PDFs completely offline in your browser—no backend uploads, no account required, and zero third-party tracking of your documents.

Why md2pdf? (Privacy-First Architecture)
- 100% Client-Side Execution: Markdown parsing, syntax highlighting, and print layout run locally in your browser tab.
- Zero Server Uploads: Your
.mdresumes, notes, and docs never leave your machine. - Live Split-Pane Editing: Resizable CodeMirror editor with GitHub-flavored Markdown preview and inline HTML support.
- PWA / Offline Ready: Cached static bundle loads cleanly even without an active connection after first visit.
flowchart LR
A["Local .md File / Editor"] --> B["Browser Parser (Remarkable + highlight.js)"]
B --> C["Live Styled Preview"]
C --> D["Browser Print -> Save as PDF"]
Quick Start (Web App)
- Open https://realdennis.github.io/md2pdf/ (Chrome recommended).
- Click Choose (or drag and drop) to load a local
.mdfile, or edit directly in the left pane. - Drag the center divider to resize the layout if needed.
- Click Transform to open the browser print dialog.
- Set Destination to Save as PDF and uncheck Headers and Footers (反選頁首與頁尾).
Tips
- Embed inline styled HTML tags (for example
<span style="color:#0984e3">text</span>or<blockquote>) directly in Markdown. - Adjust browser margins and background graphics inside Chrome Print settings for custom spacing.
Local Development & Verification
Requires Node.js 20 LTS (or Node 18+/22+) and Yarn 1.x.
Because Webpack 4 ([email protected]) uses legacy OpenSSL hashing on Node 17+, export NODE_OPTIONS=--openssl-legacy-provider before building:
yarn install --frozen-lockfile
CI=true NODE_OPTIONS=--openssl-legacy-provider yarn test --watchAll=false
NODE_OPTIONS=--openssl-legacy-provider yarn build
yarn smoke
- Start the local dev server:
NODE_OPTIONS=--openssl-legacy-provider yarn start yarn smokeverifies relative./asset paths in./build/index.html, serves./buildover localhost HTTP, and renders the app in headless Chrome.
Self-Hosting with Docker
Run a local nginx instance on port 8080:
docker compose up -d
- Uses a multi-stage
node:20-alpine->nginx:alpinebuild (withNODE_OPTIONS=--openssl-legacy-providerconfigured insideDockerfile). - Customize the exposed port in
docker-compose.yaml.
MIT License © 2019–present realdennis — see LICENSE.
관련 프로젝트 살펴보기
불러오는 중…