tencent/cherry-markdown — explained in plain English
Analysis updated 2026-06-26
Embed a rich Markdown editor with live preview into a content management system or blog platform built with plain JavaScript.
Add a streaming Markdown renderer to an AI chat interface so responses arrive word by word without flashing raw symbols.
Let users create documents with Mermaid diagrams and math formulas inside a web application without installing any JavaScript framework.
Replace a basic textarea with a full-featured editor that lets users insert images by dragging them in and resize them visually.
| tencent/cherry-markdown | simplewebrtc/simplewebrtc | huddleeng/phantomcss | |
|---|---|---|---|
| Stars | 4,689 | 4,689 | 4,692 |
| Language | JavaScript | JavaScript | JavaScript |
| Setup difficulty | easy | hard | moderate |
| Complexity | 2/5 | 3/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Use the lite build to avoid pulling in the large Mermaid diagramming library if you do not need diagrams.
Cherry Markdown is a JavaScript-based Markdown editor made by Tencent that you can embed in a website or web application. Markdown is a lightweight way of writing formatted text using plain characters, for example putting asterisks around a word to make it bold. Cherry Markdown takes text written in that format and shows a rendered preview alongside it. The editor is designed to work in a browser without requiring React, Vue, Angular, or any other framework. Those can provide the container if needed, but Cherry itself is written in plain JavaScript so it fits into any project. It can also run on a server through Node.js if you only need the text-to-HTML conversion part without a visual interface. Beyond basic Markdown, the editor supports a range of extra features: inserting images with drag-to-resize controls, creating diagrams using the Mermaid diagram language, rendering math formulas, building charts directly from table data, multi-cursor editing, exporting the document as an image or PDF, floating and bubble toolbars that appear contextually, and theme switching. There is also a streaming rendering mode specifically designed for AI chat interfaces, where text arrives word by word and the editor renders it smoothly without flashing raw Markdown symbols. Installation is through npm or yarn with a few lines of setup code to attach the editor to a page element. A lite build is available that excludes the large Mermaid diagramming library for situations where smaller bundle size matters. The toolbar, syntax extensions, keyboard shortcuts, and image upload endpoints are all configurable. Built-in security filtering is included to protect against cross-site scripting in user-generated content.
Cherry Markdown is a JavaScript Markdown editor by Tencent that you can embed in any website without a framework, showing a live preview with support for diagrams, math formulas, and AI streaming text rendering.
Mainly JavaScript. The stack also includes JavaScript, Node.js.
License terms are not specified in the repository documentation.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.