We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
方法来源于 https://ld246.com/article/1717657383372
<span data-type="text" style="text-emphasis-style: dot; text-emphasis-position: under;">着重符号<span> ((20241210194444-oqwwntf "*"))
我不理解这个是怎么解析的,为什么会有两种结果:
The text was updated successfully, but these errors were encountered:
严格来说是有 bug,但是目前没有太好的方案解决。
这个问题源自 着重符号<span> 这里的结束标记没有匹配,使用 </span> 才能匹配,解析过程中最后匹配到的是后面的引用 <span data-type="block-ref" data-subtype="s" data-id="20241210194444-oqwwntf">*</span> 的 </span>,然后 HTML 解析器在这种情况下可以正确解析出两个 span 节点,所以结果刚好正确。
着重符号<span>
</span>
<span data-type="block-ref" data-subtype="s" data-id="20241210194444-oqwwntf">*</span>
而如果没有 </span> 结束标记的话无法正确解析 <span data-type> 为 lute ast 行级节点,所以返回了行级 HTML 节点(最终渲染为文本节点):
<span data-type>
这个问题稍后会改进解析,判断 span 是否正确匹配。
Sorry, something went wrong.
🎨 Protyle Improve span parsing siyuan-note/siyuan#13420
29c4244
🎨 Improve inline elements parsing #13420
bea49f1
88250
No branches or pull requests
方法来源于 https://ld246.com/article/1717657383372
我不理解这个是怎么解析的,为什么会有两种结果:
video.webm
The text was updated successfully, but these errors were encountered: