Skip to content
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

维基百科公式的显示问题 #166

Closed
jinyu121 opened this issue Dec 7, 2017 · 6 comments
Closed

维基百科公式的显示问题 #166

jinyu121 opened this issue Dec 7, 2017 · 6 comments
Labels

Comments

@jinyu121
Copy link

jinyu121 commented Dec 7, 2017

测试页面: https://en.wikipedia.org/wiki/Domain_adaptation
复现步骤:

  1. 进入测试页面
  2. 进入阅读模式

行内公式还能好好读么?

建议只对单独的图片进行居中,行内图片仍然保持在行内。或者对此功能加个黑白名单。

@Kenshin
Copy link
Owner

Kenshin commented Dec 7, 2017

对行内公式类的图片的确有问题,暂时没有好想法来改善。
你说的方式可以考虑。😃

@Kenshin Kenshin changed the title 行内图片请不要居中 行内图片居中问题 Dec 7, 2017
@Kenshin Kenshin added the feature label Dec 7, 2017
@cognition9144
Copy link

cognition9144 commented Feb 10, 2019

请问这个功能还有在考虑吗?
事实上单独的图片通常也会由 <p> 标签包围的,而行内公式则不会。

@jinyu121
Copy link
Author

单独图片也可能是 <br /> 搞出来的……

@Kenshin
Copy link
Owner

Kenshin commented Feb 11, 2019

行内居中的问题会搞定的,目前想到的方式是增加一个选项。

最好有智能的方案,但是一直没想好。

@Kenshin
Copy link
Owner

Kenshin commented May 6, 2019

简悦已升级到 1.1.2.5005 版本,增加了全新的 词法分析引擎

解决了此类问题,详细说明请看

  • LaTeX 解析

  • 某些图片被错误居中的情况;

  • 识别图片的相对地址;

  • 去掉一些无用的多余空行;

以及增加了一些新功能:


上述有问题的链接,现在显示为

image

@Kenshin Kenshin closed this as completed May 6, 2019
@Kenshin Kenshin changed the title 行内图片居中问题 维基百科公式的显示问题 Sep 1, 2023
@Kenshin
Copy link
Owner

Kenshin commented Sep 1, 2023

image

嗨,维基百科辅助增强 发布了,解决了此类问题。

image

除此之外,此插件还包括如下优化和功能:

优化内容

  • 仅保留正文,使其更转换为 Markdown 结构,去掉了一些其它元素

  • 删除表格(在个别维基百科的页面中,表格是非常复杂的结构,所以生成的 Markdown 效果非常差,因此可以删除这些表格)

  • 让一些在侧边的图片居中显示

  • 可正常显示公式

  • 删除页脚

  • 清理文中链接(更利于导入到 Obsidian 不会生成多余的双向链接)

  • 删除正文的全部链接

安装与升级

  • 没有【使用同步助手 · 自动同步】的话,可通过 此链接 安装。

  • 已经【使用同步助手 · 自动同步】的话,请使用 插件管理器 安装。

另外,也确保你的适配规则为最新,选项页 → 站点管理,然后按照下图所示更新

image

按照并更新完请重启浏览器确保 100% 生效~

关联

#5833


我关闭此 Issues 了,如有任何疑问仍可以继续在这里讨论~

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

No branches or pull requests

3 participants