jin-yufeng/mp-html

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 13 minutes ago
Added to GitGenius on September 18th, 2026
Created on April 13th, 2019
Open Issues & Pull Requests: 68 (+0)
GitHub issues: Enabled
Number of forks: 530
Total Stargazers: 3,747 (+0)
Total Subscribers: 39 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 27.3 days
Mean response time: 87.9 days
90th percentile: 282.5 days
Tracked items: 85

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 91% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 47
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 476 days
Stale 30+ days: 47
Stale 90+ days: 44

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (24)
  • enhancement (13)
  • bug (8)
  • wontfix (5)
  • invalid (3)
  • duplicate (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

mp-html is a rich-text component for mini-programs that renders and edits HTML content across multiple platforms.

The component solves the problem of displaying formatted HTML content in mini-program environments where native HTML rendering is not available. It parses HTML input and converts it into platform-specific markup, supporting a wide range of tags including tables, videos, and SVG elements. The tool handles rich event interactions such as automatic image preview, link handling, and anchor-point navigation. It includes features like placeholder images for loading and error states, long-press copy functionality, and support for most HTML entities.

The tool suits developers building mini-programs on WeChat, QQ, Baidu, Alipay, ByteDance, or using uni-app who need to display user-generated or server-provided HTML content. It is particularly valuable for applications requiring content editing capabilities, as the project offers plugins for keyword search, content editing, and LaTeX formula rendering. The component is lightweight at approximately 25KB uncompressed and 9KB gzipped, making it suitable for performance-sensitive mini-program environments where bundle size matters.

Development activity shows consistent engagement with issue resolution and feature requests. The project maintains comprehensive documentation with dedicated sections for quick-start guides and feature overviews. Test coverage is tracked and publicly reported. The codebase follows a standard JavaScript style guide, indicating attention to code quality standards. Multiple installation methods are supported, including npm packages and source code distribution across different platform variants, suggesting the maintainers prioritize accessibility for different development workflows.