Skip to content

Markdown preview — offline

Live rendering with GitHub-style extras, sanitized and displayed entirely on your device.

100% private — files never leave your device
Markdown180 chars
Preview

Preview Markdown offline

The Markdown people need to preview is usually unpublished: a draft blog post, an internal runbook, release notes for a version that is not out yet, a README for a private repository. Pasting it into an online previewer publishes it, in the practical sense that it now exists on someone else's server.

Rendering here happens in your browser with the open-source marked library, and the output is sanitised locally with DOMPurify before display. Nothing is transmitted — the site has no backend, and a Content-Security-Policy blocks third-party requests. Type on the left, watch it render live on the right, and copy your Markdown when it looks right.

Supported syntax

Standard CommonMark is supported — headings, emphasis, links, images, lists, blockquotes, and code — plus the GitHub-flavoured extensions people actually rely on:

  • Tables with pipe syntax and column alignment.
  • Task lists- [ ] and - [x] checkboxes.
  • Strikethrough with double tildes.
  • Fenced code blocks with triple backticks and a language tag.

Bear in mind that every platform renders Markdown slightly differently. GitHub, GitLab, Notion, and static site generators each add their own extensions, so a preview here confirms your structure is sound rather than guaranteeing byte-identical output on a specific destination.

Why the rendered HTML is sanitised

Markdown permits raw HTML, which means any Markdown renderer is an HTML renderer with extra steps — and rendering untrusted Markdown without sanitising it is a straightforward cross-site scripting vulnerability. A pasted document can carry a script tag or an inline event handler.

The output here is passed through DOMPurify before it is displayed, stripping scripts and event handlers while leaving legitimate formatting intact. This site's Content-Security-Policy is a second, independent net underneath that. It is worth knowing because the same problem applies to your own application: if you render user-supplied Markdown, sanitise it.

Related and equally local: HTML entity encoder for escaping markup by hand, code formatter for the snippets inside your fenced blocks, and word counter for draft length.

How to preview Markdown offline

  1. 1

    Type or paste markdown on the left.

  2. 2

    The preview renders live on the right.

  3. 3

    Copy your markdown when you're happy with it.

Markdown Preview — frequently asked questions

Is my markdown uploaded to render the preview?

No — rendering happens in your browser with the open-source marked library, and the output is sanitized locally with DOMPurify. Draft posts and internal docs stay on your machine.

Which markdown features are supported?

Standard CommonMark plus GitHub-style tables, task lists, strikethrough, and fenced code blocks.

Is the rendered HTML safe?

The output is passed through DOMPurify before display, stripping scripts and event handlers — and this site's Content-Security-Policy is a second net.