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

行间公式中使用aligned环境,上传到知乎后代码块内出现大量<br>换行符 #171

Open
ghost opened this issue Feb 19, 2023 · 1 comment · May be fixed by niudai/markdown-it-zhihu#5

Comments

@ghost
Copy link

ghost commented Feb 19, 2023

希望维护的时候能解决一下这个问题。

并且如果有人知道如何在现有版本下规避/解决这个问题也烦请指教,感激不尽

@sun123zxy
Copy link

问题应该出在上游解析 markdown 的软件包 markdown-it-zhihu。事实上只要公式内出现任何换行都会触发知乎编辑器公式块内多余的 <br>(只有打开知乎编辑器编辑文章时会出现该问题,仅渲染是不受影响的)。刚刚提交了 pull request niudai/markdown-it-zhihu#5,等合并打包下发至这边应该就能修复。

workaround 的话应该就是写 aligned 时不要在代码里换行(

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

Successfully merging a pull request may close this issue.

1 participant