Markdown to HTML, explained
Get one self-contained HTML5 page with clean styling built in. There are no external stylesheets, so you can email it, upload it or open it offline.
What is converted, and how
- Structure
- Semantic HTML5:
h1–h6, paragraphs, lists, tables,preandcode. - Styling
- One
<style>block in the page head, the same look as the PDF export. - Code
- Syntax highlighting for fenced code blocks that name a language.
- Footnotes
- Linked, and collected at the end of the page.
- Raw HTML
- HTML inside your Markdown is passed through unchanged.
Limitations
- Images keep their original address. Web images load when the page is opened; local file paths only work on your own computer.
- Raw HTML, scripts included, passes through. Only open or share HTML made from Markdown you trust.
Tips
- Edit the
<style>block to restyle the page, then print it to PDF from your browser. - The file name you type becomes the page
<title>. - Not sure about the syntax? See the Markdown cheat sheet.
Other formats
- Markdown to PDFA4, clean typography, syntax-highlighted code.
- Markdown to WordHeadings map to Word heading styles, so the navigation pane works.
- Markdown to ExcelEach table becomes a sheet named after the heading above it. Numbers stay numbers. No tables? One paragraph per row.
- Markdown to PowerPointEvery heading starts a new slide.
- Markdown to ODTOpenDocument Text for LibreOffice Writer, with real heading styles.
- Markdown to RTFOpens almost everywhere, including WordPad and TextEdit.
- Markdown to EPUBTop-level headings become chapters.
- Markdown to LaTeXStandalone .tex, ready for pdfLaTeX, XeLaTeX or Overleaf.
- Markdown to Plain textMarkdown syntax removed, structure kept readable.