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

Mac上发布到知乎依旧存在公式解析错误 #964

Closed
Lingyu-Meng opened this issue Dec 30, 2023 · 6 comments
Closed

Mac上发布到知乎依旧存在公式解析错误 #964

Lingyu-Meng opened this issue Dec 30, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Lingyu-Meng
Copy link

Lingyu-Meng commented Dec 30, 2023

OS: macOS Sonoma 14.2, 14.2.1
Siyuan: 2.11.1
siyuan-plugin-publisher: 1.18.11
问题包括:

  1. 公式无法解析
  2. 块间距没有取消,发布后段落依旧额外空行
  3. 验证成功但无法获取专栏信息(显示为‘暂无数据’)
@terwer terwer added the bug Something isn't working label Jan 5, 2024
@terwer
Copy link
Owner

terwer commented Jan 5, 2024

验证成功但无法获取专栏信息 这个要看一下是不是用户名写错了,注意是 url 上面的英文,不是昵称 。其他两个我验证下,但是格式控制不一定能完全满足。

例如
image

@terwer terwer added the need-reply Wait for reply label Jan 5, 2024
@terwer
Copy link
Owner

terwer commented Jan 7, 2024

问题跟进
1、公式无法解析,麻烦提供一下不能解析的公式文本
2、块间距这个不会做处理,我们不会额外处理费 md 语法之外的格式。这样做也是为了保证最大的兼容性。

@Lingyu-Meng
Copy link
Author

实际上似乎任何公式都无法解析,这里贴一下刚刚试了的两个
$$U_{i}(x)=x_{i}-\alpha_{i} \frac{1}{n-1} \sum^{j\neq i}{i,j\in { 1,...,n} } max{ x{j}-x_{i},0} -\beta_{i} \frac{1}{n-1} \sum^{j\neq i}{i,j\in { 1,...,n} } max{ x{i}-x_{j},0}$$

$V^{k}{i}(t)=\begin{cases}\frac{\phi \cdot N\left( t-1\right) \cdot V^{k}{i}(t-1)+\pi_{i} \left( s^{k}{i},s{-i}(t)\right) }{N(t)} ,&s^{k}{i}=s{i}(t)\ \frac{\phi \cdot N(t-1)\cdot V^{k}{i}(t-1)+\delta \cdot \pi{i} \left( s^{k}{i},s{-i}(t)\right) }{N(t)} &s^{k}{i}\neq s{i}(t)\end{cases}$

它们在思源内显示正常,发布后成为latex了。
截屏2024-01-08 06 06 32
截屏2024-01-08 06 06 57

@terwer
Copy link
Owner

terwer commented Jan 8, 2024

经验证,知乎公式显示确实存在这个问题。1.18.12 将会修复,预计1/9 之前发布,感谢您的反馈。

关于专栏获取问题,可以参考下方指引

@terwer terwer removed the need-reply Wait for reply label Jan 8, 2024
@terwer terwer self-assigned this Jan 8, 2024
@terwer terwer closed this as completed Jan 8, 2024
terwer added a commit that referenced this issue Jan 8, 2024
fix: #964 修复转义文本导致的知乎依旧公式解析错误问题
terwer added a commit that referenced this issue Jan 8, 2024
fix: #964 修复转义文本导致的知乎依旧公式解析错误问题
@Lingyu-Meng
Copy link
Author

更新至v1.19.0后问依旧存在,且无法识别markdown语法与上传图片。
截屏2024-01-10 16 15 29
截屏2024-01-10 16 15 54

@terwer
Copy link
Owner

terwer commented Jan 10, 2024

目前 知乎CSDN 只能选择 HTML 模式发布。
目前 知乎CSDN 只能选择 HTML 模式发布。
目前 知乎CSDN 只能选择 HTML 模式发布。

请在设置中将发布模式修改为 HTML 即可正常使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants