Loading repository data…
Loading repository data…
woyin2024 / repository
一个纯前端的极简Markdown编辑器,单HTML文件,打开即用,完全免费。A minimalist browser-based Markdown editor in a single HTML file. Live preview, auto-save, distraction-free writing.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A Markdown writing tool that works right out of the box in your browser. No installation. No account. No subscription. Your words belong to you.
In the age of AI, Markdown should be simple enough.
As a Vibe Coding developer obsessed with Prompts, Agents, and Skills, I’ve used too many Markdown tools: some are too heavy, some charge subscriptions, and some sync your content to the cloud without asking. I just wanted to open a browser, type, see the layout, and take it away.
So I built this editor.
It is just one HTML file. Double-click to write. Everything is stored locally, and it works offline. It supports nearly all mainstream Agents — Codex, Claude Code, Openclaw, and more. Whether you’re designing an AGENTS.md or a Skill.md, you can do it here.
If you also believe that in the age of AI, Markdown is the first language — welcome to use it, fork it, and star it.
markdown-editor.html: double-click to run in the browser.| Feature | Description |
|---|---|
| Headings | Quick H1-H6 insertion |
| Text styles | Bold, italic, underline, strikethrough, superscript, subscript |
| Lists | Unordered, ordered, and task lists |
| Quotes & code | Blockquotes, inline code, fenced code blocks |
| Links & images | URL insertion and local image Base64 embedding |
| Tables | Visual 8×8 table picker |
| Find & replace | Find next, replace, replace all |
Powered by i18n.js: Simplified Chinese, Traditional Chinese, English, Japanese, Korean, Spanish, French, German, Russian, Portuguese.
Language preference is persisted to localStorage.
localStorage every 500ms.| Format | Description |
|---|---|
.md | Raw Markdown file |
.html | Standalone HTML file |
.doc | Word document (opens directly in Office) |
.pdf | Browser print-to-PDF |
.png | Long-image export with 9:16, 4:5, 3:4, 1:1, 16:9 ratios for social sharing |
| Shortcut | Action |
|---|---|
Ctrl + S | Save |
Ctrl + Z | Undo |
Ctrl + Y / Ctrl + Shift + Z | Redo |
Ctrl + B | Bold |
Ctrl + I | Italic |
Ctrl + U | Underline |
Ctrl + K | Insert link |
Ctrl + Shift + K | Insert image |
Ctrl + F | Find & replace |
Tab | Insert 4-space indent |
marked.jsKaTeX ($...$ inline, $$...$$ block)Mermaid 10 (mind maps and flowcharts)dom-to-image-morePython 3 + http.server (optional, for webpage-to-Markdown)┌─────────────────────────────────────────────────────────────┐
│ markdown-editor.html │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ Editor │ sync │ Preview │ │
│ │ (textarea) │ ──────▶ │ (marked.js) │ │
│ └──────────────┘ └──────────────┘ │
│ │ │ │
│ ▼ ▼ │
│ localStorage KaTeX / Mermaid │
│ │ │ │
│ ▼ ▼ │
│ auto-save / state restore formula / diagram render │
└─────────────────────────────────────────────────────────────┘
│
▼
web-to-md-proxy.py (optional)
web fetching + anti-bot bypass
.
├── markdown-editor.html # Main editor (single-file app)
├── i18n.js # i18n dictionary (10 languages)
├── web-to-md-proxy.py # Optional local proxy script
├── public/ # Static assets
│ ├── 关于作者.md
│ ├── 产品海报.png
│ └── 产品界面.png
└── README.md # This file
# Clone the repo
git clone https://github.com/woyin2024/lengyi-markdown-editor.git
# Double-click to open
markdown-editor.html
cd markdown-editor
# Python 3
python -m http.server 8080
# Or Node.js
npx serve .
# Open in browser
open http://localhost:8080/markdown-editor.html
# Install requests (optional, recommended)
pip install requests
# Start the proxy
python web-to-md-proxy.py
# Default port 8765
# Check "Use local proxy" in the editor
This project started from my own need for a simple writing tool, but I believe it can be better.
New features, bug fixes, UI improvements, language additions, and documentation improvements are all welcome:
git checkout -b feature/AmazingFeaturegit commit -m 'Add some AmazingFeature'git push origin feature/AmazingFeatureThis project is licensed under the MIT License.
You are free to use, modify, and distribute. For commercial use, please obtain authorization. I only hope that one quiet afternoon, when you write something you are truly satisfied with, you might remember where this little tool began.
Leng Yi (冷逸), founder of Chinese top AI media "沃垠AI", a Vibe Coding developer who can’t really code but loves to dive deep into Prompts, Skills, and Agents.
Welcome to follow the WeChat Official Account "沃垠AI" for more AI insights:
Writing well is what matters most.