Markdown
to HTML

Type markdown and get the HTML it becomes. Copy the markup for your own page, or download a styled web page that opens anywhere.

Updated

Markdown· Click to edit
<h2 data-line="1">Release notes</h2>
<p data-line="3">Version <strong>2.4</strong> adds <em>offline mode</em> and fixes <a href="https://example.com/changelog">two bugs</a>.</p>
<ul data-line="5">
<li data-line="5">Faster startup</li>
<li data-line="6">Smaller downloads</li>
</ul>

§01

Three ways to get HTML

Open your file in RenderMD, then use the Export menu.

ChooseYou getUse it for
Copy → HTMLThe document’s markup, on your clipboardPasting into a template, a CMS or your own page
Download → Web page (.html)One file with the typeset and theme styles inside itSending or hosting a page that looks like the preview
Copy → Formatted textFormatted text, with markdown as a fallbackPasting into Google Docs, Word, Gmail or Notion

The downloaded page loads its fonts from Google Fonts and the math styles from jsDelivr. Everything else is in the file.

§02

How markdown maps to HTML

Edit an example to see the markup change. Each one shows what goes inside the <article>. RenderMD follows CommonMark and GitHub Flavored Markdown, so the HTML matches what other standard converters produce for the same text.

Emphasis and links
Markdown· Click to edit
<p data-line="1">Read the <strong><a href="https://example.com/migrate">migration guide</a></strong> before you <em>upgrade</em>.</p>
Lists and task lists
Markdown· Click to edit
<ol data-line="1">
<li data-line="1">Install</li>
<li data-line="2">Configure</li>
</ol>
<ul class="contains-task-list" data-line="4">
<li class="task-list-item" data-line="4"><input type="checkbox" checked disabled> Tests pass</li>
<li class="task-list-item" data-line="5"><input type="checkbox" disabled> Docs</li>
</ul>
Tables
Markdown· Click to edit

















<table data-line="1"><thead><tr data-line="1"><th align="left">Plan</th><th align="right">Price</th></tr></thead><tbody><tr data-line="3"><td align="left">Free</td><td align="right">$0</td></tr><tr data-line="4"><td align="left">Team</td><td align="right">$12</td></tr></tbody></table>
Blockquotes and code
Markdown· Click to edit
<blockquote data-line="1">
<p data-line="1">Ship small changes often.</p>
</blockquote>
<p data-line="3">Run <code>pnpm test</code> before you push.</p>

§03

What the markup contains

  • One <article class="doc"> element wraps the document. Headings carry ids, so links to #sections work.
  • Code blocks are split into <span class="token"> elements, coloured by the --shiki-light and --shiki-dark CSS variables. Give .token a color that reads one of them, or use the downloaded page, which does it for you.
  • Math is KaTeX markup. It needs KaTeX’s stylesheet on your page.
  • Mermaid diagrams are inline <svg> elements, so they need nothing else.
  • Task list checkboxes are disabled <input>s.
  • Links are absolute, so they work wherever you paste the markup. Links to other sites carry target="_blank" and rel="noopener noreferrer".

Scripts, inline event handlers and other unsafe HTML in the markdown are removed before rendering, using GitHub’s sanitizing rules.

§04

Styling the copied HTML

The markup has no styles of its own. A few rules make it readable on a plain page:

css
.doc { max-width: 42rem; margin: 0 auto; line-height: 1.6; }
.doc pre { overflow-x: auto; padding: 1rem; }
.doc pre .token { color: var(--shiki-light); }
.doc table { border-collapse: collapse; }
.doc :is(th, td) { border: 1px solid #ddd; padding: 0.4rem 0.6rem; }

Frequently asked

Is the HTML safe to put on my site?

Yes. RenderMD removes scripts, style attributes, event handlers and other unsafe HTML from the markdown before it renders, using the same rules as GitHub.

Can I convert HTML back to markdown?

No. RenderMD converts markdown to HTML only.

Does the converter support GitHub Flavored Markdown?

Yes: tables, task lists, strikethrough, autolinks, footnotes and alerts, plus LaTeX math and Mermaid diagrams. The cheat sheet shows each one.

Is my markdown uploaded?

No. The conversion runs in your browser, and RenderMD’s servers never receive your document.