| English | 简体中文 |
A lightweight, single-file Markdown editor with live preview, syntax highlighting, math formulas, and diagram rendering. It runs directly in a modern browser—no installation, dependencies, or server required.

Open markdown-editor.html in a browser or use the hosted demo above.
📥 Download markdown-editor.html
Use this edition on an intranet or without an internet connection.
markdown-editor-offline.html in a browser.See the offline edition guide for details.
The Electron desktop application now lives in web-markdown-editor-desktop. This repository remains focused on the lightweight web and offline HTML editions.
| Edition | File | Description |
|---|---|---|
| Online | markdown-editor.html |
Uses CDN resources and requires a network connection |
| Offline | offline/markdown-editor-offline.html |
Uses local assets and runs without a network connection |
Only the online source file needs to be maintained. Generate the offline edition with:
node build-offline.js
The build script:
markdown-editor.html.assets/ paths.offline/markdown-editor-offline.html.When adding a CDN dependency, add its mapping to build-offline.js:
<link> and <script> replacements to replacementRules.themeUrlMappings.