Skip to content
프로젝트

소개

개인정보 보호를 우선하는 Markdown-PDF 변환기로, 브라우저에서만 실행되며 오프라인에서도 사용할 수 있습니다.

보안 및 개인정보 보호

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+5
in 15 days
+5
in 1 month
+10

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

CI Verification Deploy GitHub Pages License: MIT

Markdown2PDF (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.

md2pdf split-pane Markdown editor and live PDF preview

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 .md resumes, 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)

  1. Open https://realdennis.github.io/md2pdf/ (Chrome recommended).
  2. Click Choose (or drag and drop) to load a local .md file, or edit directly in the left pane.
  3. Drag the center divider to resize the layout if needed.
  4. Click Transform to open the browser print dialog.
  5. 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 smoke verifies relative ./ asset paths in ./build/index.html, serves ./build over 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:alpine build (with NODE_OPTIONS=--openssl-legacy-provider configured inside Dockerfile).
  • Customize the exposed port in docker-compose.yaml.

MIT License © 2019–present realdennis — see LICENSE.

관련 프로젝트 살펴보기

불러오는 중…