Git Product home page Git Product logo

taro-parserrichtext's People

Contributors

umaim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taro-parserrichtext's Issues

无法正确解析class

这是解析的字符串片段,
<p class="ql-align-center">这是测试功能的,可删除</p><p class="ql-align-right">这是测试功能的,可删除</p><ol><li class="ql-align-right">2</li><li class="ql-align-right">3</li><li class="ql-align-right">4</li><li class="ql-align-right">2</li></ol>
这是解析的结果
image
似乎是吧标签解析成了类名,把字符串里面的类名给替换了

常见问题

  • 功能缺失
    如果使用时发现功能与 原仓库 文档描述的功能不符,一般是由于这里的版本较老,后续添加的功能不支持,可以用 parser 文件夹中的内容替换 /PaserRichText/Parser 中的内容(一些新属性可能还要添加到 parserRichText.tsx)或参考 文档 直接引入

  • 文件缺失
    编译时报警告 emoji.jsdocument.js 不存在的问题,这两个文件是 扩展包,非必要的,在源代码中也是通过 try 引入的,因此忽略即可,不影响使用;介意的话可以在源代码中直接删去引入的代码

  • wxs 缺失
    编译时报 wxs 文件不存在的问题,原因和方法见 用法4 条;不过原仓库最新版中已经没有独立的 wxs 文件了

资源缺失

image
如图,资源缺失是不是修改的时候误删了?

map遍历后无法传进去值?

              <View className='txt'>A{index+2}</View> // A2
              <View className='txt'>B{item[index+2].data}</View>//B +无法打印
              <View className='txt'>-----------------------</View>
              <View className='txt'>C{tabList[index+2].data}</View> // C 获取的数组
              {/* <ParserRichText html={tabList[index+2].data}></ParserRichText> */} // 红色报错

2
WeChat Image_20191101191908

`

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.