Documentation
Markdown2PDF documentation
Everything you need to go from a Markdown file to a finished document: editor basics, page setup, exports, saved documents and the small details that affect the printed page.
Updated November 23, 2026 · Markdown2PDF by Hyperdyn
Quick start
- Open the Markdown2PDF editor. A sample document is loaded if you have no saved draft.
- Replace the sample with your Markdown, or use Open to load an .md, .markdown or .txt file.
- Adjust the page and style settings. The page count and preview update as the document changes.
- Sign in with Google when you want to download a PDF or print. You can keep editing without an account.
Editor basics
The editor has two panes on a desktop: Markdown source and the paginated document preview. On narrower screens, use the Write and Preview tabs. The preview is the source of truth for page breaks, page numbers and the exported PDF.
- Open or drag in a Markdown file from the editor toolbar.
- Your latest draft and style are saved locally as you type.
- Use the page guides toggle to see the document’s content area.
- Use the zoom controls to inspect a page closely or fit it to the pane.
- Use the write/preview switch on small screens instead of a split view.
Page setup and styles
The style panel controls the document rather than the editor chrome. Most changes affect pagination, so check the preview after adjusting margins, font size or line height.
| Setting | What it changes |
|---|---|
| Page size and orientation | A4, A5 or Letter, portrait or landscape. |
| Margins | The printable content area and the space for running details. |
| Typography | Body, heading and code fonts, size, leading and heading treatment. |
| Page details | Header and footer text, page numbers and number format. |
| Tables and code | Table style and code theme for technical documents. |
| Presets | Starting points such as a manuscript, technical report or compact note. |
Styles can be exported and imported as a JSON file, which is useful when a team wants the same look for a series of documents.
Controlling page breaks
Automatic pagination tries to avoid cutting atomic content such as images, table rows and headings. Sometimes you still want a deliberate break. Add this on its own line:
<!-- pagebreak -->The preview shows a forced-break badge with a remove action. Removing the badge also removes the marker from the Markdown source. The break is included in PDF and print output; HTML export retains the content without forcing a physical page.
Exports: PDF, print, HTML and Markdown
- Download PDF: an image-based PDF with an exact visual match. Good for a quick share, but its text is not selectable.
- Print-quality PDF: opens the print flow and keeps real text. Use it for searchable, accessible documents.
- Download HTML: a standalone styled HTML document. See the Markdown to HTML guide.
- Download Markdown: the source text as a .md file.
- Style export/import: a JSON file containing your visual settings.
PDF download and print require Google sign-in. The session and saved document are stored in this browser; there is no server-side account or document store.
Saved documents and Google sign-in
Signing in with Google identifies a saved-document snapshot on this device. After sign-in, the saved-document window lets you reopen, download or print the snapshot. The app stores the account ID, name, email address, profile image URL and the document snapshot in localStorage.
Because there is no account server, the saved document does not sync between browsers or devices. Clearing site data removes the local session and snapshot. The sign-in gate is a product flow, not a server-enforced security boundary.
Troubleshooting
Fonts look different in the print dialog
Give the font a moment to load before printing. Network problems can prevent a Google Font from loading; use a system font if you need a guaranteed offline result.
The printed pages have extra margins
In the browser print dialog, set margins to None and disable headers and footers. The document already includes its own margins and page details.
A very long document is slow to export
Very long documents require more canvas memory. Split the document into sections or use the print-quality flow instead of the image-based PDF download.
The sign-in window did not appear
Check that scripts from accounts.google.com are allowed, then reload. If you are running the app locally, the Google OAuth client must allow your local origin.
Guides and next steps
Markdown to PDF
The complete conversion workflow and a tool comparison.
Markdown editor
What the live page preview does and who it is for.
Markdown cheat sheet
Copyable syntax for headings, lists, tables, code and breaks.
Documentation teams
How to use Markdown2PDF for runbooks, specs and handover docs.
Frequently asked questions
Is there a Markdown2PDF API?
No. Markdown2PDF is an interactive browser editor. It does not expose a hosted conversion API or a CI integration.
Where are my documents stored?
The latest draft, style and optional saved-document snapshot are stored in this browser’s localStorage. They are not uploaded to a server or synced between devices.
Why is sign-in required for PDF download?
Sign-in is part of the product flow for downloading and printing. It also identifies the saved document on this device. The gate is not a server-enforced security boundary.