CHENXCHEN / hexo-renderer-markdown-it-plus

Markdown-it is a markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
https://chchc.me/hexo-article/2017/07/27/hexo-renderer-markdown-it-plus-plugin-demo/
MIT License
120 stars 22 forks source link

Katex \frac分数线没有显示 #28

Open jygzyc opened 4 years ago

jygzyc commented 4 years ago

博客中有一个公式是这样的: $$ \begin{aligned} X_R &= (\lambda^2 - X_P - X_Q) \mod P \ \ Y_R &= (\lambda(X_P - X_R)-Y_P) \mod P \ \ \lambda &= \frac{Y_Q-Y_P}{X_Q-X_P} \mod P \ \end{aligned} $$ 显示的时候第三个公式的分数线没有显示,请问这是什么问题?

MakerGYT commented 4 years ago

katex支持有限,可以试试服务端方案markdown-it-latex2img %20%5Cmod%20P%20%5C%5C%0A%5Clambda%20%26%3D%20%5Cfrac%7BY_Q-Y_P%7D%7BX_Q-X_P%7D%20%5Cmod%20P%20%5C%0A%5Cend%7Baligned%7D%0A)