Skip to content

Markdown Previewer

Write Markdown and see it rendered as you type, with tables, task lists and code blocks, then copy the HTML or download it as a page.

  • Free, no sign-up
  • Runs in your browser
  • Sources cited

GitHub Flavored Markdown: tables, task lists, strikethrough and links. Raw HTML is shown as text.

Show

Release notes

Version 2.4 adds dark mode and faster exports.

What changed

  • Dark mode for every page
  • CSV exports up to 3x faster
  • Offline sync (next release)
Feature Status
Dark mode Done
Offline sync Planned
export const theme = "dark";

Thanks to everyone who reported issues.

Read more at https://www.example.com/changelog.

Contents

  1. Release notes
  2. What changed
Words
49
Characters
405
Headings
2

How to use the Markdown previewer

  1. Write or open Markdown

    Type on the left, paste a README, or open a .md file. The preview updates as you type.

  2. Check the result

    Switch between the rendered preview and the HTML it produces, and use the table of contents to see the structure.

  3. Choose the line-break style

    Keep standard Markdown, where a single line break joins lines, or treat each line break as a new line, as GitHub comments do.

  4. Export

    Copy the HTML, download it as a complete web page, or save the Markdown file.

How Markdown works

Markdown is plain text with light punctuation that converts to HTML: # starts a heading, * or _ marks emphasis, - starts a list item and [text](url) makes a link. CommonMark specifies the syntax precisely, and GitHub Flavored Markdown adds tables, task lists, strikethrough and automatic links. The previewer uses the marked library with GitHub Flavored Markdown turned on.

Markdown allows raw HTML, which is a risk when a page shows Markdown from someone else: a script tag or an onerror attribute could run code, a problem the OWASP cross-site scripting guidance describes. This previewer shows raw HTML as text instead, and keeps only web, mail, anchor and relative addresses in links and images, so a javascript: link becomes harmless. The HTML you copy is therefore safe to show as it is.

Headings get ids made from their text, such as #what-changed, so links can point straight to a section, and duplicate headings get numbered ids. Everything runs in your browser; the document is never uploaded.

Worked example

The example release notes have 2 headings and 49 words. The line Version 2.4 becomes <p>Version <strong>2.4</strong></p>, and the heading ## What changed becomes <h2 id="what-changed">What changed</h2>.

Typed into the editor, <script>alert(1)</script> comes out as &lt;script&gt;alert(1)&lt;/script&gt;: shown, not run. A link written as [click](javascript:alert(1)) keeps its text but points to “#”.

Understanding the result, and common mistakes

  • Lines that join unexpectedly. In standard Markdown a single line break does not start a new line; leave a blank line for a new paragraph, or turn on GitHub-style line breaks.
  • Lists that do not start. A list needs a blank line before it when it follows a paragraph.
  • Underscores inside words. Most renderers ignore them, but asterisks are clearer for emphasis.
  • Expecting HTML to render. This previewer shows raw HTML as text on purpose, for safety.

Frequently asked questions

Does it match GitHub exactly?

It follows the same GitHub Flavored Markdown syntax, but GitHub adds its own features, such as mentions and emoji codes, which are not converted here.

Why is my HTML shown as text?

Raw HTML is escaped so that no script can run from a document. Use Markdown syntax instead.

Is my document uploaded?

No. It is rendered in your browser and never leaves your device.

Sources

  1. MarkdownDaring Fireball · retrieved Nov 14, 2026
  2. CommonMark SpecCommonMark · retrieved Nov 14, 2026
  3. GitHub Flavored Markdown SpecGitHub · retrieved Nov 14, 2026
  4. Marked documentationmarked · retrieved Nov 14, 2026
  5. Cross Site Scripting Prevention Cheat SheetOWASP Foundation · retrieved Nov 14, 2026

About these results

  • Markdown is rendered in your browser. Nothing you write is uploaded.