In the print dialog, choose “Save as PDF” as the destination.
How to use
- Type or paste Markdown into the editor, or press Open file to load a .md file (you can also drop it on the editor).
- The output opens on the HTML tab with the generated source; switch to Preview to see the rendered page.
- Press Copy HTML to paste the markup into your CMS, or Download .html for a standalone page. Download PDF opens the print dialog, where you choose Save as PDF.
About this tool
Which Markdown becomes which HTML
Each Markdown construct turns into one standard HTML element, so the result works on any page:
## Heading→<h2>,**bold**→<strong>,*italic*→<em>- item→<ul>with<li>,1. item→<ol>[text](url)→<a>; a barehttps://address is linked too~~old~~→<del>- [ ] task→ a list item with a disabled checkbox- a pipe table →
<table>with<thead>and<tbody> > [!NOTE]and the other GitHub alerts → a highlighted note box
For example, ## Setup followed by Run **npm install**. becomes <h2>Setup</h2> and <p>Run <strong>npm install</strong>.</p>.
Copy into a CMS or download a file
Copy HTML copies the source shown on the HTML tab. Paste it into the HTML or code view of a CMS, a newsletter editor or a docs page, and the site's own styles take over. Download .html saves a complete page that opens on its own: the GitHub styles are inlined and Mermaid diagrams are already drawn as SVG, so it looks the same offline or as an email attachment. Download PDF opens your browser's print dialog; choose Save as PDF as the destination.
Code blocks and Mermaid diagrams
A fenced code block tagged python comes out as <pre><code class="language-python">. That is the class Prism and highlight.js look for, so your own highlighter can colour it.
A mermaid block is kept as <pre class="mermaid"> with the diagram source inside. Load mermaid.js on your page and it draws the diagram; without it, readers see the source text. The downloaded .html already contains the drawn SVG.
Private by design
Conversion runs in your browser. What you type and the files you open (up to 5 MB) are never uploaded.
Common mistakes
- No
| --- |row under the table header: the lines stay plain text with pipes. -[ ] taskwithout spaces: a task needs a space after the dash and inside the brackets.- An unclosed code fence turns the rest of the document into code.
- A single line break does not start a new line. Leave a blank line for a new paragraph, or end the line with a backslash for a
<br>. - Raw HTML in the Markdown is passed through unchanged, so check Markdown from other people before you publish the result.
Frequently asked questions
Which Markdown syntax is supported?
GitHub-flavored Markdown: headings, lists, links, tables, task lists, strikethrough, autolinks, GitHub alerts, fenced code blocks and Mermaid diagrams. Raw HTML passes through unchanged.
What is the difference between Copy HTML and Download .html?
Copy HTML gives you the generated markup to paste into a CMS or email editor, where the site's styles apply. Download .html saves a standalone page with GitHub styles inlined and Mermaid diagrams drawn as SVG.
Does the HTML keep syntax highlighting classes?
Yes. A code block tagged with a language comes out as <pre><code class="language-x">, the class name Prism and highlight.js use.
How do Mermaid diagrams come out?
In copied HTML, a mermaid block stays as <pre class="mermaid"> for mermaid.js to draw on your page. In the downloaded .html file it is already an SVG image.
Is my Markdown uploaded?
No. Conversion happens in your browser, and files you open (up to 5 MB) never leave your device.