Transform your Markdown content into beautifully formatted PDFs with a single click.
Markdown to PDF Converter is a lightweight, browser-based tool that converts Markdown content into professionally styled PDF documents. Perfect for creating documentation, reports, articles, or any content that needs to be shared in a polished, platform-independent format.
- π Real-time Preview - See your changes rendered instantly
- π Dark Mode Support - Toggle between light and dark themes
- π Mermaid Diagrams - Create and render flowcharts, sequence diagrams, and more
- π± Fully Responsive - Works on desktops, tablets, and mobile devices
- πΎ Auto-Save - Never lose your work with automatic local storage backup
- π Undo/Redo - Full history management with keyboard shortcuts
- π οΈ Customization Options - Page size, orientation, and margins for PDF export
- π§© Formatting Toolbar - Quick access to common Markdown formatting options
- π€ Import/Export - Drag-and-drop file imports and one-click exports
- π Privacy-First - All processing happens in your browser with no server uploads
Visit mark2pdf.com to use the tool immediately without installation.
-
Download the HTML file
Download the
markdown2pdf.htmlfile from the repository. -
Open in Browser
Simply open the file in any modern web browser.
-
Start Converting
Begin writing or pasting your Markdown and generate PDFs with a click.
Regular paragraphs are rendered with appropriate spacing.
Bold text is created with double asterisks.
Italic text uses single asterisks.
Bold and italic can be combined.
Unordered lists:
- Item 1
- Item 2
- Nested item
- Another nested item
- Item 3
Ordered lists:
- First step
- Second step
- Third step
Blockquotes are created with the greater-than symbol.
Multi-paragraph quotes look like this.
Inline code: console.log('Hello World');
// Syntax highlighted code blocks
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet('Markdown'));graph TD
A[Start] --> B{Is it working?}
B -- Yes --> C[Great!]
B -- No --> D[Debug]
D --> B
sequenceDiagram
User->>Editor: Enter Markdown
Editor->>Preview: Render HTML
User->>Editor: Click "Generate PDF"
Editor->>PDF Generator: Convert HTML
PDF Generator->>User: Download PDF
classDiagram
class Document {
+String content
+render()
+export()
}
class MarkdownDoc {
+convertToHTML()
}
class PDFDoc {
-String filename
+download()
}
Document <|-- MarkdownDoc
Document <|-- PDFDoc
| Shortcut | Action |
|---|---|
Ctrl + B |
Bold text |
Ctrl + I |
Italic text |
Ctrl + K |
Insert link |
Ctrl + H |
Toggle heading |
Ctrl + U |
Unordered list |
Ctrl + O |
Ordered list |
Ctrl + Q |
Blockquote |
Ctrl + Shift + C |
Code block |
Ctrl + S |
Save Markdown |
Ctrl + P |
Generate PDF |
Ctrl + Z |
Undo |
Ctrl + Y |
Redo |
| Option | Description |
|---|---|
| File name | Customize the output file name |
| Page size | Choose from A4, Letter, Legal |
| Orientation | Portrait or Landscape |
| Margins | Set custom margins in millimeters |
flowchart TD
A[Markdown Input] --> B[Marked.js Parser]
B --> C[HTML Renderer]
C --> D[Preview Display]
E[User Settings] --> F[Theme Management]
F --> G[UI Updates]
H[Editor Actions] --> I[History Stack]
I --> J[Undo/Redo]
K[Generate PDF] --> L[html2pdf.js]
D --> K
L --> M[PDF Download]
N[Local Storage] <--> O[Persistence Layer]
O --> P[Auto-save]
| Browser | Minimum Version | Status |
|---|---|---|
| Chrome | 60+ | β Full support |
| Firefox | 60+ | β Full support |
| Safari | 12+ | β Full support |
| Edge | 79+ | β Full support |
| Opera | 60+ | β Full support |
| IE | Any | β Not supported |
| Task | Status | Completion |
|---|---|---|
| Design | β Complete | 100% |
| Frontend | β³ In Progress | 65% |
| Backend | β³ In Progress | 80% |
| Testing | π Planned | 0% |
| Deployment | π Planned | 0% |
- π Technical documentation
- π Meeting notes & minutes
- π Project reports & status updates
- π Data analysis summaries
- π Academic papers & assignments
- π° Newsletters & articles
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add some amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Email: gauthier.bros@gmail.com
- Website: bros.ai
- GitHub: BrosG
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ by Gauthier Bros