Cherry Markdown is a JavaScript Markdown editor that runs in the browser or on Node.js. It supports rich editing, diagrams, streaming render for chat UIs, and optional desktop or VS Code packaging.
Overview
Cherry Markdown Writer is a JavaScript Markdown editor meant to work out of the box with common syntax such as headings, tables of contents, flowcharts, and math. It is implemented in plain JavaScript without requiring a specific web framework, though it can sit inside Angular, Vue, or React hosts.
Editing features include multi-cursor input, floating and bubble toolbars, floating table of contents, autocomplete, VIM mode, customizable shortcuts, and theme switching. Diagram and media support covers Mermaid with resize and alignment, formulas, table-to-chart, image and video embedding, and WYSIWYG handling for images and tables.
A streaming rendering mode targets AI chat scenarios by completing partial Markdown during token streams to reduce raw-source flashing. Builds are offered in Full, Core, Stream, and Engine variants for browser, Node.js, and streaming use cases.
Beyond npm or CDN embedding, the project provides a cross-platform Tauri desktop client for local .md files on Windows, macOS, and Linux, and an official VS Code extension with the same editing and preview experience.
Key features
- Browser and Node.js execution
- Streaming Markdown render mode
- Mermaid, math, and media embeds
- XSS filtering with DomPurify
- Custom syntax and toolbar extensions
- Export to image or PDF
- Tauri desktop client
- VS Code extension
Use cases
- In-app Markdown editing on the web
- AI chat interfaces with live Markdown
- Local Markdown file editing on desktop
- Markdown editing inside VS Code