Markdown Editor

Live Markdown editor with preview and HTML export.

The Markdown Editor gives you a text area with a formatting toolbar and a live preview next to it. You can also view the generated HTML, copy it, open a .md file from disk or download your document as document.md.

What is Markdown?

Markdown is a lightweight plain-text format created by John Gruber in 2004. You mark up structure with simple punctuation, such as # for headings, asterisks for emphasis and hyphens for lists, and a converter turns it into HTML. Because the source stays readable as plain text, it is used for README files, documentation, notes and many chat and CMS editors. There are several dialects. This editor renders with the marked library in GitHub Flavored Markdown (GFM) mode, which adds tables, task lists and strikethrough on top of the original syntax. The HTML it produces is passed through DOMPurify, which removes scripts, event handlers and unsafe links before the preview is shown or the HTML is copied.

How to use Markdown Editor

  1. Write or open a document Type in the Markdown box, or press Open .md to load a file. A short sample is loaded at the start.
  2. Format with the toolbar Select text and click a toolbar button, or type the syntax yourself.
  3. Check the preview Read the Preview pane, or change View to Preview only or HTML source.
  4. Export Press Download .md to save the Markdown, or Copy HTML to copy the sanitised HTML.

Frequently asked questions

Which Markdown flavour does the editor use?

It uses the marked library in GitHub Flavored Markdown mode, so tables, task lists and strikethrough work. Single line breaks inside a paragraph are not turned into line breaks (the breaks option is off), as in standard Markdown.

Is the preview safe if I paste untrusted Markdown?

The HTML is sanitised with DOMPurify, which removes scripts, event handlers and unsafe URL schemes. In addition, style attributes and style, form, iframe, object and embed tags are forbidden. As with any sanitiser, treat it as a strong safeguard rather than a guarantee.

Does Copy HTML include a full HTML page?

No. It copies the sanitised HTML fragment for your content, without html, head or body wrappers.

Which files can Open .md load?

Files ending in .md, .markdown or .txt, read as plain text.

Is my text saved anywhere?

The text lives in the page only and is not sent to a server. Use Download .md to keep it.

Does it highlight syntax in code blocks?

No. Fenced code blocks are rendered as pre and code elements without colour highlighting.