All Projects → tans → we-rich

tans / we-rich

Licence: ISC license
HTML转微信富文本节点, we just need rich, no text.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to we-rich

wxbizdatacrypt
微信小程序加密数据解密算法Go版
Stars: ✭ 132 (+266.67%)
Mutual labels:  weapp, minapp
v-editor
📝Write md or rich text easily
Stars: ✭ 22 (-38.89%)
Mutual labels:  rich-text
mpapi
🐤 小程序API兼容插件,一次编写,多端运行。支持:微信小程序、支付宝小程序、百度智能小程序、字节跳动小程序
Stars: ✭ 40 (+11.11%)
Mutual labels:  weapp
super rich text
The easiest way to style custom text snippets in flutter
Stars: ✭ 14 (-61.11%)
Mutual labels:  rich-text
JMGS
基于LBS的微信小程序,服务器端代码在这里server@https://github.com/g1mi/jmgs_server
Stars: ✭ 29 (-19.44%)
Mutual labels:  weapp
chineseSearch
汉字笔顺查询的微信小程序,支持简体和繁体。
Stars: ✭ 36 (+0%)
Mutual labels:  minapp
weapp-OpenRadio
A base music weapp named OpenRadio for wechat. Can use on weapp getting started.
Stars: ✭ 14 (-61.11%)
Mutual labels:  weapp
wechat-scroll-linkage
微信小程序列表左右联动效果
Stars: ✭ 26 (-27.78%)
Mutual labels:  minapp
org-rich-yank
📋 Rich text clipboard for org-mode: Paste as a #+BEGIN_SRC block of correct mode, with link to where it came from
Stars: ✭ 59 (+63.89%)
Mutual labels:  rich-text
RichEditorView
Android 基于WebView的富文本编辑器 - 仿简书编辑器
Stars: ✭ 77 (+113.89%)
Mutual labels:  rich-text
weapp-saucenao
微信小程序: 识图娘
Stars: ✭ 19 (-47.22%)
Mutual labels:  weapp
draftjs exporter
Library to convert Draft.js ContentState to HTML
Stars: ✭ 77 (+113.89%)
Mutual labels:  rich-text
taro-icons
基于 Taro 的小程序图标库
Stars: ✭ 53 (+47.22%)
Mutual labels:  weapp
quasar-tiptap
A modern WYSIWYG rich-text editor built on top of tiptap and Quasar for Vue.js.
Stars: ✭ 254 (+605.56%)
Mutual labels:  rich-text
egg-weapp-sdk
Egg的微信小程序登录会话管理SDK
Stars: ✭ 111 (+208.33%)
Mutual labels:  weapp
RSS-to-Telegram-Bot
A Telegram RSS bot that cares about your reading experience
Stars: ✭ 482 (+1238.89%)
Mutual labels:  rich-text
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (+66.67%)
Mutual labels:  weapp
zuchemini
微信小程序,租车小程序,租车公司预约小程序
Stars: ✭ 41 (+13.89%)
Mutual labels:  weapp
mall-app
youlai-mall 微信小程序/H5/Android/iOS 移动应用端,uni-app终极跨平台前端框架。
Stars: ✭ 75 (+108.33%)
Mutual labels:  weapp
weapp wechat miniapp sdk
一个封装了微信小程序服务端接口的SDK
Stars: ✭ 102 (+183.33%)
Mutual labels:  weapp

We Rich

Parse HTML into Weapp rich-text Nodes

HTML转小程序 rich-text 控件节点

npm

Usage

Node

npm install we-rich

const weRich = require('we-rich');
var nodes = weRich.parse(html);

例子 Input/Output

<div class='post post-featured'>
  <p>hello</p>
  <section>world</section>
  <img src="test.png" style="max-width:100%" />
</div>
[
  {
    "type": "node",
    "name": "div",
    "attrs": {"class": "post post-featured"},
    "children": [
      {
        "type": "node",
        "name": "p",
        "attrs": {},
        "children": [{"type": "text", "text": "hello"} ]
      },
      {
        "type": "node",
        "name": "div",
        "attrs": {},
        "children": [{"type": "text", "text": "world"}
        ]
      },
      {
        "type": "node",
        "name": "img",
        "attrs": {"src": "test.png", "style": "max-width:100%"},
        "children": []
      }
    ]
  }
]

功能

HTML into 微信小程序rich-text使用的nodes

安装

npm install we-rich --save
const weRich = require('we-rich');
var nodes = weRich.parse(html);

此项目基于 himalaya

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].