Oneflow-Inc / oneflow-api-cn

Chinese Documents of OneFlow API
https://start.oneflow.org/oneflow-api-cn/
7 stars 3 forks source link

使用 katex 替代 mathjax,以提高渲染速度 #74

Open doombeaker opened 2 years ago

doombeaker commented 2 years ago

katex 的渲染速度更快,但是支持的 latex 语法范围少一点。

在用 katex 替代 mathjax 的同时,需要检查最终的输出效果,重写 katex 不能渲染的部分。

加入 katex 的支持见这个PR:

https://github.com/Oneflow-Inc/oneflow-api-cn/pull/72

不过因为会有部分 公式渲染不成功,已经 revert 了。后续需要做这个 PR 的修改 + 修改 docstring

doombeaker commented 2 years ago

相关参考:https://zhuanlan.zhihu.com/p/381263375