# jin-yufeng/mp-html

小程序富文本组件，支持渲染和编辑 html，支持在微信、QQ、百度、支付宝、头条和 uni-app 平台使用

Repository: https://github.com/jin-yufeng/mp-html
Canonical: https://ross.abutalabs.com/products/mp-html
Homepage: https://jin-yufeng.github.io/mp-html
Language: JavaScript
License: MIT
License Family: permissive
Topics: miniprogram, rich-text, html, wx, uni-app, editor
Last push: 2026-04-19T11:18:49+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 78, release rhythm 29, longevity 100
- inputs: {"age_days": 2699, "days_push": 136, "days_rel": 262, "gap_med": 237, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3736, forks 530 (observed 2026-08-28T04:08:15.843819+00:00)

## What it is
A rich-text component for Chinese mini-programs (WeChat, QQ, Baidu, Alipay, Toutiao) and uni-app that renders and edits HTML content. It is lightweight (~25KB), supports rich tags like table/video/svg, event handling, and plugins for search, editing, and LaTeX formulas.

## Use cases
- render html content in a wechat mini-program
- display rich text articles in a mini-program
- edit rich text content in a mini-program
- render html in uni-app across multiple mini-program platforms
- preview images and handle links inside rich text
- render tables, videos, and svg in mini-programs
- add latex formula rendering to mini-program content

## When to choose
- you need to render or edit html inside a WeChat/QQ/Baidu/Alipay/Toutiao mini-program or uni-app project
- you need a lightweight, fault-tolerant rich-text renderer with plugin support
- you need cross-platform mini-program compatibility from a single component

## When to avoid
- you are building a regular web app where standard DOM rendering suffices
- you need a full WYSIWYG editor for native mobile or desktop apps
- your platform is not a mini-program or uni-app environment

## Facets
- artifact type: library
- maturity: active
- function: ui-components, parser, templating
- domain: frontend, web-development, cross-platform
- platform: cross-platform
- tags: miniprogram, rich-text, html-rendering, uni-app, html-editor, wechat, javascript

## Member repositories
- jin-yufeng/mp-html (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.843819+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:29:10.916750+00:00, confidence not recorded.
  - readme: https://github.com/jin-yufeng/mp-html (fetched 2026-08-28T04:08:15.843819+00:00, sha a5b449759edc)
  - homepage: https://jin-yufeng.github.io/mp-html (fetched 2026-08-29T09:23:58.406863+00:00, sha ecc0f19deaca)
  - registry_npm: https://registry.npmjs.org/mp-html (fetched 2026-08-29T09:23:58.415722+00:00, sha 5836eb8b3f01)
- Data as of 2026-08-30T08:39:29.467469+00:00.
