A zero-build, single-page Markdown editor with live preview. Open index.html in a browser — that's the whole install.
- Real code editor — CodeMirror with line numbers, Markdown syntax highlighting, and search/replace (
Ctrl+Ffind,Shift+Ctrl+Freplace) - Live preview — GitHub-flavored Markdown rendered as you type (marked + DOMPurify)
- Mermaid diagrams — fenced
```mermaidblocks render inline - Math —
$inline$and$$block$$LaTeX via KaTeX (plain$5 and $10stays text) - YAML front matter — a leading
---block is treated as metadata and hidden from the preview - Syntax highlighting — fenced code blocks via highlight.js
- Formatting toolbar — headings, bold/italic/strikethrough, links, images, code, quotes, lists, tasks, tables, rules (all toggleable)
- Keyboard shortcuts —
Ctrl+Bbold,Ctrl+Iitalic,Ctrl+Klink,Ctrl+Ssave,Ctrl+Oopen,Tab/Shift+Tabindent; full undo/redo history across toolbar actions - Smart lists — Enter continues bullet/numbered/task lists, Enter on an empty item ends the list
- Paste & drop images — paste from clipboard or drop an image file to embed it inline; drop a
.mdfile to open it - File open/save — load
.mdfiles, download under the opened filename - Export — styled standalone HTML file (needs internet for code/math CSS), or Print for PDF via the browser
- Autosave — draft persists in localStorage across reloads
- Synced scrolling between editor and preview
- Dark mode — follows your system preference
- Word/character count and cursor position in the status bar
Contributions welcome — see CONTRIBUTING.md. The short version: keep it zero-build, pin CDN dependencies with SRI, and sanitize everything that reaches the preview.