Markdown to HTML
Convert Markdown to Html and allow to print (as PDF)
About Markdown to HTML
Converts Markdown into HTML with the markdown-it parser (CommonMark plus tables and strikethrough), shows the rendered result, and can send it to the print dialog to save it as a PDF.
When you would use it
- Getting the HTML of a README or a note to paste into a CMS, an e-mail or a web page.
- Printing or saving a Markdown document as a PDF without installing anything.
- Checking how a Markdown snippet renders before publishing it.
How to use it
- Paste or type Markdown in the left field.
- Read the generated HTML on the right and the rendered preview.
- Copy the HTML, or use the print button to open the print dialog and choose Save as PDF.
Things worth knowing
- Raw HTML inside the Markdown is not passed through: it is shown as text. Use Markdown syntax for formatting instead.
- Supported beyond basic CommonMark: tables and strikethrough (~~text~~), which markdown-it enables by default; task lists, footnotes and math are not.
- The output is a fragment (no <html>, <head> or <body>), ready to insert into an existing page or template.
- Printing uses your browser's print dialog, so page size, margins and headers are controlled there. Choose Save as PDF as the destination.
Frequently asked questions
- Why does my inline HTML show up as text?
- HTML passthrough is disabled for safety, so tags are escaped and displayed literally. Express the formatting in Markdown, or add the HTML after conversion.
- Can I style the PDF?
- Only through the browser's print options (paper size, margins, scale). For custom fonts or colours, paste the HTML into your own page with a stylesheet and print from there.