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

知乎公式导出 Markdown 时公式重复(在阅读模式下的显示没问题) #5034

Closed
wieniawski-lai opened this issue Jan 10, 2023 · 16 comments

Comments

@wieniawski-lai
Copy link

wieniawski-lai commented Jan 10, 2023

请描述你的问题

稍后读公式显示不正确

截图
正常网页显示如下
image

稍后读显示如下
image

@Kenshin
Copy link
Owner

Kenshin commented Jan 10, 2023

没有问题

image

如何使用 #2861 (comment)

但是在部分知乎页面上导出 Markdown 还是有点问题。

@Kenshin Kenshin changed the title 公式显示不正确 知乎公式导出 Markdown 时公式重复 Jan 10, 2023
@Kenshin Kenshin changed the title 知乎公式导出 Markdown 时公式重复 知乎公式导出 Markdown 时公式重复(在阅读模式下的显示没问题) Jan 10, 2023
@wieniawski-lai
Copy link
Author

是的,导出md的公式有问题
image

@Kenshin
Copy link
Owner

Kenshin commented Jan 10, 2023

okay 修复后我会通知你。

@wieniawski-lai
Copy link
Author

今天我又碰到知乎一篇文章,

有些公式对,有些不对

image

@Kenshin
Copy link
Owner

Kenshin commented Jan 11, 2023

okay 收到~

@wieniawski-lai
Copy link
Author

还有一个问题是,Live Editor删除一些无用的东西之后,公式显示会不正常.

这篇文章,在稍后读模式下是正常的
image

然后我使用Live Editor删除了二楼和三楼的内容,理论上是没有touch到一楼的文字,然后就不正常了
image

事实上,只要进了Live Editor,不修改任何东西,再推出Live Editor,也会有上面一样的效果.整个公式就不正常了.

@wieniawski-lai
Copy link
Author

事实上可以看到,进入了Live Editor模式之后,2和3的内容都不对了

比如原本2的内容是调和函数BLABLA

进入Live Editor之后,这部分内容变到了3

@Kenshin
Copy link
Owner

Kenshin commented Jan 11, 2023

Live Editor删除一些无用的东西之后,公式显示会不正常.

这是有可能,因为 Live Editor 在使用时会修改页面结构导致某些公式失败。

@wieniawski-lai
Copy link
Author

Live Editor删除一些无用的东西之后,公式显示会不正常.

这是有可能,因为 Live Editor 在使用时会修改页面结构导致某些公式失败。

嗯,我试过了,不修改也会出错

我没有想清楚原理为什么会出错

@Kenshin
Copy link
Owner

Kenshin commented Jan 11, 2023

我试过了,不修改也会出错

试试 Live Editor 简易模式。

@lisontowind
Copy link

CSDN也有同样的问题

@Kenshin
Copy link
Owner

Kenshin commented Jan 24, 2023

@lisontowind

并不是每个 CSDN 和 知乎都有问题,所以给出 URL 方便我测试~

@lisontowind
Copy link

@lisontowind

并不是每个 CSDN 和 知乎都有问题,所以给出 URL 方便我测试~

https://blog.csdn.net/qq_28087491/article/details/126134823

@RealAidanJoe
Copy link

@lisontowind

并不是每个 CSDN 和 知乎都有问题,所以给出 URL 方便我测试~

https://zhuanlan.zhihu.com/p/580981620

@Kenshin
Copy link
Owner

Kenshin commented Jan 30, 2023

@lisontowind

CSDN 的问题在于它使用了 Katex 方案,目前简悦仅支持 MathJAX 方案,这算是 Feature。

@RealAidanJoe

你提供的知乎公式是 MathJAX 我这边导出后没有问题。

计算理论导论(第三版)第四章:可判定性 第一节:可判定语言.txt

@Kenshin
Copy link
Owner

Kenshin commented Jul 10, 2023

zhihu@cover

嗨,知乎辅助增强插件 升级到 2.0.0,基本上彻底解决了知乎公式的问题。

2.0.0 功能说明

截图

包括:导入到 Obsidian 、PDF 、在稍后读查看知乎公式、导出 HTML 等。

pika-1688973561715-1x

pika-1688973547744-1x

pika-1688973529299-1x

pika-1688973515027-1x

pika-1688973508763-1x

关联

#2860

安装与升级

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

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

@Kenshin Kenshin closed this as completed Jul 10, 2023
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

4 participants