Markdown is the quiet workhorse of documentation. Project READMEs, meeting notes in Obsidian or Notion exports, technical specs, changelogs and course notes are often written in it because it is fast to type and easy to version. Sooner or later, though, someone outside your team asks for "a PDF": a client who needs the spec signed off, an auditor who wants the handbook, a manager who prints things.
This guide explains how Markdown turns into a formatted document, which elements need special care on paper, how to convert in your browser with a choice of themes, and how command-line tools like pandoc compare.
From Markdown to a formatted page
Markdown is plain text with lightweight conventions: # for headings, - for bullets, **bold**, backticks for code, pipes for tables. On its own it has no fonts, colours or page size. Converting it to PDF happens in two stages:
- Markdown to HTML. A parser turns the syntax into headings, paragraphs, lists and tables. Most tools today follow CommonMark, and many add GitHub Flavored Markdown (GFM) extras such as tables, task lists (
- [x] done), strikethrough and automatic links. - HTML to PDF. A stylesheet decides how it looks, and a print engine lays it out on pages.
That second stage is where the "look" of your PDF comes from. The same Markdown can produce a clean modern report, a serif document that feels like a printed paper, or something resembling GitHub's README view, just by changing the stylesheet.
Differences between Markdown flavours
Not every tool supports the same extras. Footnotes, maths, diagrams, definition lists and admonition boxes are handled by some editors but not others. If your notes rely on those, check how the converter treats them before sending the result to anyone.
Convert Markdown to PDF in your browser
Our Markdown to PDF tool parses Markdown with GitHub-style extensions (tables, task lists, fenced code) and uses your browser's print engine, so the PDF keeps selectable text.
- Open Markdown to PDF. The editor starts with a sample document; replace it by typing, pasting, or clicking Open .md file. Clear empties the editor and Sample restores the example.
- Pick a Theme: Clean (sans-serif), Classic (serif, report), GitHub style, or Compact (fits more per page).
- Choose a Text size: Small, Normal, Large or Extra large.
- Enter a PDF file name / title. Opening a file fills this in from the file name.
- Set Paper size, Orientation, Margins and whether to Print background colours (useful for shaded code blocks).
- Check the live preview, then click Save as PDF. In the print dialog choose Save as PDF and turn off headers and footers.
The stylesheet keeps headings with the text that follows them and avoids splitting code blocks, tables, quotes and images across pages where possible. If the print dialog does not open on your phone, use Download .html and print that file from your browser.
Other ways to convert Markdown to PDF
pandoc
pandoc is a widely used document converter. The basic command is:
pandoc notes.md -o notes.pdf
By default pandoc produces PDF through a LaTeX engine, which must be installed separately and can be large. The output has a typeset, academic look and excellent support for maths, citations and cross-references. Alternatively, pandoc can produce HTML and use an HTML-based PDF engine. For long technical documents and books, pandoc is the more powerful choice.
Your Markdown editor
Many editors, including Typora, Obsidian and VS Code with an extension, have an "Export to PDF" command. These are convenient because what you see matches what you export, and some support the editor's own extras such as callouts or diagrams.
Render on GitHub and print
If the file lives in a GitHub or GitLab repository, the rendered view can be printed from the browser. The result includes the site's interface around your content unless you are careful with the print settings, so a dedicated converter usually gives a cleaner page.
Tips for Markdown that prints well
Wide tables
Tables with many columns can overflow a portrait page. Switch to landscape, pick the Compact theme, or reduce the text size.
Long code lines
Code blocks wrap long lines in this tool rather than cutting them off, but heavily wrapped code is hard to read. Keep lines under about 90 characters for printing.
Images
Images referenced by relative paths (for example ) cannot be found when you paste Markdown into a web page. Use full URLs for images, or insert the diagram into the PDF afterwards with Add Image to PDF.
Page breaks
Markdown has no page-break syntax. Headings help the layout engine find natural breaks, and a horizontal rule (---) gives a visual separator.
Front matter and wiki links
Notes from tools like Obsidian often start with a YAML block between --- lines and use [[wiki links]]. Standard Markdown parsers do not understand either: front matter may appear as a stray rule and text, and wiki links show up as literal brackets. Delete the front matter and replace wiki links with plain text or normal links before exporting.
Checking the Markdown first
The Markdown Preview tool is handy for checking syntax while writing. If you need HTML rather than PDF, use Markdown to HTML.
Going the other way
If you are given a PDF and want to bring it into your Markdown notes, PDF to Markdown extracts headings, lists and paragraphs.
Frequently asked questions
Does Markdown to PDF support tables and task lists?
Yes. GitHub-style tables and task lists are converted, along with fenced code blocks, block quotes and horizontal rules.
Is the text in the PDF selectable?
Yes. The PDF is created by your browser's print engine, so text remains real, selectable text.
Is code syntax-highlighted?
Code blocks are shown in a monospace font on a shaded background, but without colour syntax highlighting.
Why is my image missing from the PDF?
Relative image paths do not resolve in a browser tool. Use absolute image URLs or add the image to the PDF afterwards.
Which theme should I choose?
Clean for general documents, Classic for reports that should feel formal, GitHub style for READMEs, and Compact when you need to fit more on each page.