Analysis updated 2026-07-03
Add a rich-text content area to a WeChat mini-program that renders HTML from a CMS or API
Display blog posts or articles with tables, images, and inline styles inside a Douyin or Alipay mini-program
Enable LaTeX math formulas or syntax-highlighted code blocks in an educational mini-program app
Let users preview images full-screen and copy external links in a mini-program without extra code
| jin-yufeng/mp-html | mumuy/relationship | auduno/headtrackr | |
|---|---|---|---|
| Stars | 3,708 | 3,708 | 3,707 |
| Language | JavaScript | JavaScript | JavaScript |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a WeChat or compatible mini-program development environment (WeChat DevTools or uni-app CLI).
mp-html is a component that lets developers display HTML content inside Chinese mini-programs. Mini-programs are the small apps that run inside WeChat, QQ, Baidu, Alipay, and similar platforms. Those platforms have their own restrictions on what HTML can be shown, and the built-in rich-text components they provide are limited. mp-html works around those limitations so that standard HTML markup, including tables, videos, and inline styles, renders correctly. The component supports a range of interactive behaviors out of the box. Tapping an image opens a full-screen preview. External links can be copied to the clipboard automatically when clicked. Videos pause when another video starts playing. Tables get a horizontal scroll wrapper so they do not overflow the screen. Anchor links that jump to sections within the page are supported. All of these behaviors can be configured with simple properties on the component tag. A plugin system handles less common needs. There are optional plugins for rendering Markdown, displaying LaTeX math formulas, highlighting code blocks, parsing emoji shortcodes, caching images locally, and editing rich text directly inside the mini-program. Each plugin is added only if needed, so the base component stays small at around 25 kilobytes. The component works in WeChat, QQ, Baidu, Alipay, ByteDance (Douyin/TikTok), and uni-app projects. Installation is via npm or by copying the compiled files into the project directory. You pass your HTML as a string to the content property and the component handles the rest. It is released under the MIT license and free to use including in commercial products.
A component for displaying HTML content inside WeChat, QQ, Alipay, and other Chinese mini-programs, working around their built-in rendering limitations so tables, videos, and rich formatting display correctly.
Mainly JavaScript. The stack also includes JavaScript, WeChat Mini-Program, uni-app.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.