English | 简体中文
Cherry Markdown Writer is a JavaScript Markdown editor. It has the advantages such as out-of-the-box, lightweight and easy to extend. It can run in browser or server(with Node.js).
- Getting Started with Cherry Markdown Editor
- hello world
- Configuring Image & File Upload Interfaces
- Adjusting the Toolbar
- Comprehensive Configuration Options
- Custom Syntax
- Configuring Themes
- Extending Code Block Syntax
- Events & Callbacks
- Build Artifacts (Full / Core / Stream / Engine)
- API
- Full Mode
- Basic
- Mobile
- Multiple Instances
- Editor Without Toolbar
- Pure Preview
- XSS (Disabled by default; requires configuration to enable XSS)
- IMG WYSIWYG
- Table WYSIWYG
- Headers with Auto Num
- Streaming rendering Mode (AI chat scenario)
- Streaming Mode - Lazy Loading Plugins
- VIM Editing Mode
- Utilize Your Own Mermaid.js
- Custom Code Block Wrapper
- Out-of-the-box — Instantiate with a single call; most common Markdown syntax (headings, TOC, flowcharts, formulas, etc.) works by default.
- Easy to extend — Pure JavaScript implementation, no framework dependency (Angular/Vue/React only serve as container environments). Custom syntax, toolbar buttons and themes are all supported.
- Streaming rendering — Purpose-built for AI Chat scenarios. Auto-completes unfinished Markdown fragments during token streaming to prevent raw source flashing.
- Rich editing experience — Multi-cursor editing, floating & bubble toolbars, floating TOC, input autocomplete, VIM mode, shortcut key customization, and theme switching.
- Powerful diagrams & media — Mermaid diagrams (with drag-to-resize and alignment), math formulas, table-to-chart, image resize & alignment, audio/video embedding.
- Export & interoperability — Paste from rich text as Markdown, export to Image / PDF, WYSIWYG editing for images and tables.
- High performance & secure — Partial rendering & partial update; built-in whitelist filtering and DomPurify to prevent XSS.
For a visual walkthrough, see the demo.
Cherry Markdown ships a cross-platform desktop client (built with Tauri) for Windows, macOS and Linux. It supports opening / editing local .md / .markdown / .txt files with the same editing experience as the web version.
Prefer editing Markdown right inside VSCode? Cherry Markdown also provides an official VSCode extension with the same rich editing & preview experience.
👉 Install from VSCode Marketplace
Via yarn
yarn add cherry-markdownVia npm
npm install cherry-markdown --saveCherry provides multiple build artifacts (Full / Core / Stream / Engine) to fit different scenarios such as browser, Node.js, and AI Chat streaming. For usage examples, bundle differences, mermaid integration and dynamic import, please refer to Build Artifacts Guide.
Welcome to join us in building a powerful Markdown editor. Before implementing new features or submitting a pull request, please read:
