Writing a README or a guide
Watch the GFM preview while you write, then download the .md when you are done.
Guide
The Markdown editor is a local two-pane page: the left pane holds the source, the right pane renders it live with marked in GFM mode with breaks enabled, and the rendered HTML is sanitized with DOMPurify. It also autosaves the draft to the browser's localStorage, so you can carry on editing after a refresh.
Updated 2026-09-102 min read
The Markdown editor is a local two-pane page: the left pane holds the source, the right pane renders it live with marked in GFM mode with breaks enabled, and the rendered HTML is sanitized with DOMPurify. It also autosaves the draft to the browser's localStorage, so you can carry on editing after a refresh.
.md.| Input | Output | Note |
|---|---|---|
# 标题 |
<h1>标题</h1> in the preview |
GFM parsing |
| a single line break | previews as a line break | the editor enables breaks: true |
HTML containing <script> |
the dangerous part is sanitized | both the preview and the copied HTML use the sanitized result |
marked GFM syntax with single newlines converted to <br>; other Markdown dialects may differ.localStorage key omnibox:text-markdown-draft; when the browser blocks storage the save fails silently.Watch the GFM preview while you write, then download the .md when you are done.
Check the result in the sanitized preview first, then export a standalone HTML file with the built-in base styles.
This tool deliberately implements local draft autosave, unlike most text tools that only work in memory.
The HTML used for both preview and export comes from the DOMPurify result, so scripts and dangerous attributes are removed.
Markdown is not uploaded to a server, but it is persisted automatically to this browser's localStorage. After handling sensitive content on a shared device, clear the editor yourself and confirm the browser's site-data policy meets your requirements.
Updated 2026-09-10
Edit on the left, preview on the right with synced scrolling and toolbar shortcuts; export HTML / Markdown