Git Product home page Git Product logo

taro-parserrichtext's Introduction

Taro-ParserRichText

适用于 Taro 的小程序富文本组件,是对 Parser 的一个 Taro 组件封装

目前只适用于微信小程序

用法

  1. ParserRichText 文件夹复制到项目 components 文件夹中
  2. 在需要富文本渲染的页面/组件中导入组件 import ParserRichText from '组件路径';
  3. 需要使用的地方使用 ParserRichText 组件即可,访问 Parser 了解参数详情及注意事项
  4. NervJS/taro#3885 未解决之前,需要在 config/index.js 文件中添加 config.copy.patterns 复制组件到目标文件夹。参考:config/index.js#L32

请访问 Parser 原仓库了解更多参数详解及注意事项

Demo 示例

本组件用于 SteamCN 论坛微信小程序 主贴内容及回复内容的富文本渲染,可在此项目中参考使用方法及预览效果

组件中使用:https://github.com/xPixv/SteamCN-Mini-Program/blob/master/src/components/ReplyCard/replyCard.tsx

页面中使用:https://github.com/xPixv/SteamCN-Mini-Program/blob/master/src/pages/thread/thread.tsx

反馈及建议

欢迎 提出 issue 及 PR

开源许可

MIT

taro-parserrichtext's People

Contributors

umaim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.