In short
The HTML export is a standalone page: a full document with a title taken from your first heading, a viewport meta tag and a small embedded stylesheet, so it looks finished when opened directly or attached to an email. If you only need the markup for a CMS, switch the preview to HTML and copy the part inside the body.
| Download | Complete HTML document with embedded CSS, no external dependencies |
|---|---|
| Copy | Bare HTML fragment for a CMS, newsletter or documentation system |
| Parser | marked in GitHub Flavored Markdown mode |
| Code blocks | Emitted with language-* classes ready for highlight.js or Prism |
| Safety | Raw HTML in the preview is sanitised with DOMPurify |
| Typical size | A few kilobytes for a normal document |
Two kinds of HTML, depending on what you need
Download .html gives you a self-contained page: a <!DOCTYPE html> document with a title taken from your first heading, a viewport meta tag, and a small embedded stylesheet so it looks finished when opened directly in a browser or attached to an email. It has no external dependencies and weighs a few kilobytes.
HTML source in the preview shows exactly what will be downloaded. If you only need the inner markup — to paste into WordPress, Ghost, a newsletter tool or a documentation system that already has its own CSS — switch the preview to "HTML source" and copy the part inside <body>, or use the "Copy for Google Docs" button, which also carries the formatted HTML on the clipboard.
How Markdown maps to HTML
| Markdown | HTML produced |
|---|---|
# Title … ###### Sub | <h1> … <h6> |
**bold**, *italic*, ~~strike~~ | <strong>, <em>, <del> |
`code` and fenced blocks | <code>, <pre><code class="language-js"> |
- item / 1. item | <ul> / <ol> with nested lists |
| a | b | tables | <table> with <thead> and <tbody> |
[text](url),  | <a href>, <img alt> |
> quote, --- | <blockquote>, <hr> |
Safety
Markdown allows raw HTML, which can include scripts. The live preview is sanitized so nothing pasted into the editor can run in your browser. Code-block language hints are preserved as language-* classes so you can add a highlighter such as highlight.js or Prism on your own site.
Markdown to HTML for developers
This page uses the marked parser in GFM mode. If you need the same conversion in a build pipeline, npx marked -i README.md -o readme.html produces identical fragment output, and Pandoc offers more extensions.