Markdown Editor & Live Preview to HTML
Write GitHub-flavored Markdown with Mermaid diagrams, KaTeX math, footnotes and highlighted code in a live, sanitized preview. Keep several documents, paste images, pick a theme, write in focus mode, and export to HTML, PDF, Word or ePub, all without an upload.
Markdown in one screen
Markdown is a plain-text format that reads naturally as text and converts cleanly to HTML. It is the format of README files on GitHub and GitLab, of most documentation sites, of notes apps such as Obsidian, and of messages in Slack, Discord and many issue trackers. This editor follows GitHub-flavored Markdown (GFM), the most widely used dialect, which adds tables, task lists, strikethrough and automatic links to the original syntax.
| You type | You get |
|---|---|
# Title, ## Section | Headings, level 1 to 6 |
**bold**, *italic*, ~~struck~~ | bold, italic, |
[text](https://example.com) | A link;  for an image |
- item or 1. item | Bulleted or numbered list; indent for nesting |
- [ ] todo, - [x] done | Task list with checkboxes |
> quoted | Block quote |
`code` and fenced ```js blocks | Inline code and code blocks with a language tag |
| a | b | rows with a |---|---| line | A table; colons in the divider set alignment |
--- on its own line | A horizontal rule |
A single line break inside a paragraph is ignored in standard Markdown, so hard-wrapped text flows as one paragraph; leave a blank line to start a new one, or end a line with two spaces or a backslash to force a break. The "Line breaks" option treats every newline as a break, which is how GitHub renders comments and issues but not README files.
Why the preview is sanitized
Markdown allows raw HTML, so a Markdown document can contain a <script> tag, an onerror attribute on an image or a javascript: link. Rendering untrusted Markdown straight into a page is a classic cross-site scripting hole. This editor converts Markdown with the marked parser and then passes the HTML through DOMPurify, which keeps safe formatting and strips scripts, event handlers and dangerous URLs before anything reaches the page. The copied and downloaded HTML is the same sanitized output, so it is safe to paste into a CMS or an email template. If you build your own Markdown pipeline, sanitize on output in the same way; escaping the input is not enough because Markdown's own syntax produces HTML.
Diagrams, math and footnotes
A fenced block tagged mermaid becomes a diagram: flowcharts, sequence, class, state, entity-relationship, Gantt and pie charts all render in the page with the Mermaid library, the same syntax GitHub uses. Labels are treated as text, so a diagram cannot run script. Math between single dollars ($E = mc^2$) is set inline and between double dollars on its own line, with KaTeX; a dollar followed by a space or a digit is left alone, so prices such as $5 stay prices. [^1] marks a footnote and [^1]: text defines it; the notes are numbered and gathered at the end with links back. Fenced code with a language tag is coloured for 36 common languages.
Using the exported HTML
Copy HTML gives you the body fragment: headings with stable id attributes for linking, paragraphs, lists, tables and code blocks, with no styles or scripts, ready for a CMS, a blog engine, an email builder or a documentation template. Download .html page wraps that fragment in a complete, self-contained document with a readable typographic style, a light and dark theme that follows the reader's system setting, and no external requests, which makes it suitable for sending as an attachment, archiving or printing to PDF from the browser. The heading ids follow the same rule GitHub uses (lowercase, spaces to hyphens, punctuation removed), so links like #getting-started written for a README keep working.
Frequently asked questions
Paste or type Markdown into the editor and the HTML is generated as you type. Use Copy HTML for the HTML fragment to paste into a website, CMS or email builder, or Download .html page for a complete styled document. Switch to the HTML view to read the generated markup. The conversion follows GitHub-flavored Markdown, so tables, task lists and strikethrough are included.
Write the header cells separated by pipes, then a divider row of dashes, then one row per line: | Name | Role | on the first line, | --- | --- | on the second, and | Ada | Engineer | below. Colons in the divider set alignment: :--- for left, :---: for centered and ---: for right. The table button in the toolbar inserts a starter table you can edit. The cells do not need to line up in the source.
Yes. Tables, task lists, strikethrough, fenced code blocks with a language tag and automatic linking of bare URLs all render as they do on GitHub, and headings get the same anchor ids GitHub generates. Mermaid diagrams, KaTeX math ($…$ and $$…$$) and footnotes ([^1]) render here too, all in your browser. GitHub-specific features that need its servers, such as @mentions, issue references and emoji shortcodes, are shown as plain text.
PDF opens your browser's print dialog with the document in the chosen theme; pick Save as PDF. The text stays selectable and links keep working. Word .docx writes headings as Word heading styles, so the navigation pane and a table of contents work, plus lists, tables, links, code, quotes and images; diagrams go in as pictures and math as its TeX source. ePub builds an e-book with a table of contents from your headings, math as MathML and diagrams as SVG. All three are made in the page without any upload.
In Markdown a single newline inside a paragraph is treated as a space, so text wrapped at 80 columns still forms one paragraph. To start a new paragraph leave a blank line; to force a line break within a paragraph end the line with two spaces or a backslash. If you want every newline to become a break, as in GitHub comments, turn on the Line breaks option.
Yes. Raw HTML in the Markdown is passed through DOMPurify before it is displayed or exported, which removes script tags, inline event handlers such as onerror, and javascript: URLs while keeping harmless formatting. The editor itself never runs code from the document, and nothing you type is sent to a server.
It is not uploaded: parsing, rendering, diagrams, math and every export happen in your browser and there are no network requests. Documents are not stored unless you tick Autosave in this browser, which keeps them in the browser's private file storage (the Origin Private File System) on this device only; untick it and the saved copies are deleted. Pasted images stay in the page and go into your exports. Share link from the header places the text in the link's #fragment so it reaches only the person you send it to.
Changelog
- v1.2.0 Mermaid diagrams rendered in the page (the FAQ wrongly said they needed GitHub), KaTeX math, footnotes and highlighted code. Export to PDF (print dialog), Word .docx and ePub 3. Five themes, focus and typewriter modes, pasted images kept with the document, several documents with opt-in autosave to the browser's private file storage.
- v1.1.0 Dropping a Markdown file onto the page works again (it failed with an error), and files are decoded from their bytes with the encoding detected and changeable.
- v1.0.0 Initial release: GitHub-flavored Markdown with marked 18, DOMPurify sanitizing, formatting toolbar and shortcuts, GitHub-style heading anchors and table of contents, proportional scroll sync, split/editor/preview/HTML views, .md open and download, HTML fragment copy and a self-contained styled HTML export.