Markdown Viewer
Write Markdown and preview sanitized HTML side by side, rendered locally and safely.
A multi-file Markdown editor with live preview
This tool is a Markdown editor with a side-by-side preview, a formatting toolbar for headings, bold, links, lists and code blocks, and a file panel so you can keep several documents open at once. It's useful for drafting a README, previewing a GFM changelog before committing, or checking how a document will render before pasting it somewhere else. The preview HTML is sanitized before display, and everything renders in your browser without a round trip to a server.
How to use the Markdown Viewer
- Write or paste Markdown into the editor; the panel starts with a short getting-started file.
- Use the toolbar buttons for bold, italic, headings, lists, quotes, code blocks and links, or type Markdown directly.
- Open extra .md, .markdown or .txt files with the folder icon, or add a blank one with the + icon.
- Toggle the file panel and preview panel with the icons on the left and right of the toolbar.
- Copy formatted text, HTML or raw Markdown from the Copy menu, or export the active file as .md or .html.
Rendering uses GitHub-flavored Markdown (tables, strikethrough, task lists) but does not turn single line breaks into `<br>` tags, so a lone newline inside a paragraph is treated as a space, matching standard Markdown behavior rather than GFM's line-break mode.
The rendered HTML is sanitized with DOMPurify before it's inserted into the preview, which strips scripts and other unsafe markup, so previewing untrusted Markdown from elsewhere doesn't execute embedded HTML.
Frequently asked questions
- Can I work on more than one Markdown file at a time?
- Yes, the file panel on the left lets you open multiple files, add new blank ones, rename them by double-clicking, and switch between them, each keeping its own content and undo history.
- How do I export my Markdown as an HTML file?
- Open the Export menu and choose HTML (.html); it wraps the rendered preview in a minimal styled HTML document and downloads it. A Markdown (.md) export is also available; PDF export is not yet enabled.
- Is the HTML preview safe to use with Markdown from someone else?
- The preview is run through DOMPurify sanitization before rendering, which removes scripts and dangerous attributes, so pasted or imported Markdown containing raw HTML won't execute code in your browser.
- Does this support GitHub-flavored Markdown, like tables?
- Yes, GFM extensions including tables, strikethrough and task-list checkboxes are enabled, so a README written for GitHub previews close to how it would render there.
- Are my documents uploaded anywhere while I edit them?
- No, both the editing and the Markdown-to-HTML rendering happen in your browser tab, so a draft README or internal doc you open here isn't sent to a server.