Skip to content

ohnicholas93/markdown-to-pdf

Repository files navigation

Markdown to PDF

Markdown to PDF is a browser-based editor for writing markdown, previewing fully paginated pages, and exporting a clean print-ready PDF without leaving the app.

Features

  • Live markdown editing with instant preview updates
  • LaTeX math rendering for inline and display equations
  • Real paged layout rendering powered by Paged.js
  • Typography, theme, margin, and page chrome controls
  • Print-to-PDF workflow that stays selectable and searchable
  • Local styleset export for saving document presets

Stack

  • React 19
  • TypeScript
  • Vite
  • Tailwind CSS v4
  • Paged.js

Getting Started

Install dependencies:

bun install

Start the development server:

bun run dev

Open the local Vite URL shown in the terminal.

Available Scripts

bun run dev
bun run build
bun run test
bun run lint
bun run preview

Usage

  1. Write or paste markdown into the editor.
  2. Add equations with $...$, $$...$$, \(...\), or \[...\].
  3. Adjust page size, typography, colors, margins, and running header/footer settings.
  4. Review the paginated preview.
  5. Use Print / Save PDF to export through the browser print dialog.

Assets

Brand assets live in public/. The app uses public/logo.png in the header and as the favicon.

About

Markdown to PDF is a browser-based editor for writing markdown, previewing fully paginated pages, and exporting a clean print-ready PDF without leaving the app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages