Skip to content

The browser extension supports Wikipedia formula clipping #11583

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

Closed
Achuan-2 opened this issue May 30, 2024 · 10 comments
Closed

The browser extension supports Wikipedia formula clipping #11583

Achuan-2 opened this issue May 30, 2024 · 10 comments
Assignees
Milestone

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented May 30, 2024

剪藏插件支持剪藏维基百科的公式

In what scenarios do you need this feature?

目前用思源的剪藏插件只能把维基百科的公式以图片的形式剪藏下来,希望适配维基百科的公式剪藏
示例网页:https://zh.wikipedia.org/wiki/%E7%91%9E%E5%88%A9%E8%B7%9D%E7%A6%BB
复制维基百科的公式,默认为图片,图片的alt带有latex公式, 内容如下

{\displaystyle z_{\mathrm {R} }={\frac {\pi w_{0}^{2}}{\lambda }},}

Describe the optimal solution

适配维基百科的公式剪藏,希望是剪藏为markdown数学公式,而不是图片

Describe the candidate solution

No response

Other information

No response

@88250 88250 self-assigned this May 30, 2024
@88250 88250 added this to the 3.1.0 milestone May 30, 2024
@88250 88250 changed the title 剪藏插件支持剪藏维基百科的公式 The browser extension supports Wikipedia formula clipping May 30, 2024
@TCOTC
Copy link
Contributor

TCOTC commented May 30, 2024

我还一直以为 wiki 的公式就是图片的

@Achuan-2 Achuan-2 changed the title The browser extension supports Wikipedia formula clipping 1】、 May 30, 2024
@Achuan-2 Achuan-2 changed the title 1】、 1】、4 May 30, 2024
@Achuan-2 Achuan-2 changed the title 1】、4 The browser extension supports Wikipedia formula clipping May 30, 2024
88250 added a commit to 88250/lute that referenced this issue May 31, 2024

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit to 88250/lute that referenced this issue May 31, 2024

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue May 31, 2024

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue May 31, 2024

Verified

This commit was signed with the committer’s verified signature.
@88250 88250 closed this as completed May 31, 2024
@88250 88250 modified the milestones: 3.1.0, 3.0.17 May 31, 2024
@TCOTC
Copy link
Contributor

TCOTC commented May 31, 2024

@88250 上面这里剪藏怪怪的:

网页:

image

剪藏:

image

@TCOTC
Copy link
Contributor

TCOTC commented Jun 1, 2024

还有就是剪藏之后这里会多出一堆 svg:

image

@88250
Copy link
Member

88250 commented Jun 1, 2024

@88250 上面这里剪藏怪怪的:

网页:

image

剪藏:

image

这个是符合剪藏的摘要获取规则的。

@88250
Copy link
Member

88250 commented Jun 1, 2024

还有就是剪藏之后这里会多出一堆 svg:

image

这个暂时没办法了,剪藏扩展会将能够下载的文件先下载插入,和思源中判断解析网页可能会有所出入。

@TCOTC
Copy link
Contributor

TCOTC commented Jun 1, 2024

这个是符合剪藏的摘要获取规则的。

但是为什么会在同一个块里没有换行呢?

88250 added a commit to 88250/lute that referenced this issue Jun 2, 2024

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Jun 2, 2024

Verified

This commit was signed with the committer’s verified signature.
@TCOTC
Copy link
Contributor

TCOTC commented Jun 4, 2024

@88250 旧版剪藏是正常的两个块的:

https://zh.wikipedia.org/wiki/%E7%91%9E%E5%88%A9%E8%B7%9D%E7%A6%BB

image

新版变成一个块了:

image

@88250
Copy link
Member

88250 commented Jun 4, 2024

从内容上上看新版的更完整,这个图片被算作行级元素并到下面的 p 里了,应该算是正常情况:

image

@TCOTC
Copy link
Contributor

TCOTC commented Jun 4, 2024

为啥并到下面去是正常的?在 p 内的应该才算是 p 的行级元素吧?

@88250
Copy link
Member

88250 commented Jun 4, 2024

为啥并到下面去是正常的?在 p 内的应该才算是 p 的行级元素吧?

#11640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants