towxml
towxml copied to clipboard
html标签渲染时,span和div渲染不一致;MD和html渲染不一致
场景是流式渲染一段字符串,存在html tag第一个>还未到达小程序的场景,这时候span和div的效果不同:
html渲染逻辑下:
<span class="test-1" style="background-color: #ccc;padding: 10px;" 没有解析出span标签,渲染为空,不露出代码
MD渲染逻辑下:
<span class="test-1" style="background-color: #ccc;padding: 10px;" 没有解析出span标签,解析为普通p标签渲染,可以露出代码
原因是MD渲染时,对于span和div处理不一样吗?