-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Browser clipping extension supports clipping SVG #14523
New issue
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
Comments
svg 公式剪藏不了,和这个是一个问题 #14338 |
如果插件端能识别到内嵌的svg并标记传输到kernel,kernel那边能将其用html块装起来吗? |
不行的,kernel 会跳过 svg 元素解析,如果能转换图片是可行的。 |
预处理直接把svg标签改为img标签?src里存放base64格式的svg图片?这样是不是主流程就不需要动 |
是的,即使需要动也能适配
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年4月7日(周一) 下午5:36
收件人: ***@***.***>;
抄送: ***@***.***>;"State ***@***.***>;
主题: Re: [siyuan-note/siyuan] 网页剪藏数学公式识别异常 (Issue #14523)
预处理直接把svg标签改为img标签?src里存放base64格式的svg图片?这样是不是主流程就不需要动
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
ruin1990 left a comment (siyuan-note/siyuan#14523)
预处理直接把svg标签改为img标签?src里存放base64格式的svg图片?这样是不是主流程就不需要动
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIj48Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIyMCIgZmlsbD0icmVkIi8+PC9zdmc+" alt="Dynamic SVG Image">
<svg id="originalSvg" width="50" height="50">
<circle cx="25" cy="25" r="20" fill="red"/>
</svg> 简单试了下,可行,等我研究一下。这个也是强依赖于剪藏后需要刷新页面(变回去有点麻烦啊),如果可以的话,就加入实验性选项里 |
好的,多谢 |
|
可以解码回svg图,我把节点贴入html里是可以正常显示的 我打包了份插件,可以试试,没有影响网页的显示,大概就是前面讨论的思路 |
估计得明天才能看了,不好意思。 |
好的,有点奇怪,看起来是直接把src里的原始图片base64数据填充到url里了 |
内核这边也需要改一些代码配合,稍后我提交,我用你之前上传的扩展包测试了,可以正常工作。 |
能转回 SVG 的话合理点 |
是不是要等到下个release发布了网页插件才能发布,二者有关联 |
插件一般先发布,要测试 |
嗯,那应该可以,默认其实是关闭的,感觉如果常开很容易把各种emoji和没有摘录意义的小图给全剪藏进去 |
稍后发布商店。 |
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
问题网址:
https://mp.weixin.qq.com/s/1QW4K_TVhAOSWEish2yyVA
对应网页中的数学公式没有正确识别到
Expected result
正确识别公式
Screenshot or screen recording presentation
Version environment
Log file
稍微分析了下网页,似乎所有公式都是svg图片内嵌html中
More information
No response
The text was updated successfully, but these errors were encountered: