Skip to content

Markdown to PDF editor

---
title: Markdown to PDF
subtitle: A quick tour of everything this editor can do
author: Your Name
---

# Welcome to Markdown to PDF

Write on the left, see the finished page on the right, then press **Download PDF**. Everything happens in your browser — nothing is uploaded, there's no account, and there's never a watermark.

> [!TIP]
> Open **Style** to change the theme, fonts, paper size, margins, headers and footers. Replace this text with your own, or drop a `.md` file anywhere on the editor.

## Text formatting

You can use **bold**, *italic*, ~~strikethrough~~, ==highlights==, `inline code`, H~2~O, E = mc^2^, [links](https://mdtopdfonline.com) and emoji shortcodes :rocket: :sparkles:.

1. Numbered lists
2. With nested items
   - Bullets inside
   - As deep as you like

- [x] Task lists render as real checkboxes
- [ ] Ready for your next meeting notes

## Tables

| Feature | Markdown to PDF | Typical converter |
| :-- | :-: | :-: |
| No signup, no watermark | ✅ | Sometimes |
| Files stay on your device | ✅ | Rarely |
| Page numbers & headers | ✅ | Rarely |
| Math, diagrams & code | ✅ | Partly |

## Code with syntax highlighting

```ts
function toPdf(markdown: string): Promise<Blob> {
  // 200+ languages, highlighted exactly as they'll print
  return render(markdown, { theme: 'clean', pageSize: 'A4' });
}
```

## Math

Inline math like $\sqrt{a^2 + b^2}$ or \(e^{i\pi} + 1 = 0\), and display equations:

$$
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
$$

## Diagrams

```mermaid
flowchart LR
  A[Write Markdown] --> B[Live preview]
  B --> C{Looks good?}
  C -- Yes --> D[Download PDF]
  C -- No --> A
```

\newpage

## Page breaks

The `\newpage` line above starts a new page in the PDF. You can also write `<!-- pagebreak -->`, or put `[toc]` on its own line to insert a table of contents.

## Callouts and footnotes

> [!NOTE]
> GitHub-style alerts work: NOTE, TIP, IMPORTANT, WARNING and CAUTION.

Footnotes are collected at the end of the document.[^1]

[^1]: Like this one. Links in your PDF stay clickable, and text stays selectable and searchable.
248 words 2,165 chars ~1 min read Ln 1, Col 1 A4 · portrait · Clean Private · on-device