-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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转HTML的显示页面,有些数学公式不能正常显示。 #87
Comments
@anby2015 已标记,稍后修正。 |
谢谢。 |
我找到解决这个问题的方法了。 katex.render(tex.html(), tex[0]); 修改为: var tex_html = tex.html();
tex_html = tex_html.replace(/</g, '<');
tex_html = tex_html.replace(/>/g, '>');
katex.render(tex_html, tex[0]); |
@anby2015 fixed @v1.4.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在用editormd.markdownToHTML时,如果 数学公式的内容有 "<" 或者 ">"符号时,数学公式显示不出来。$$x < y < Z $$ ,在控制台会报错:"Error: KaTeX parse error: Unexpected character: '&' at position 2: x ̲'&'lt; y '&'lt; Z "$$x\leq y < z $$ ,在控制台会报错:"Error: KaTeX parse error: Unexpected character: '&' at position 8: x\leq y ̲'&'lt; Z"$$x > y > Z $$ ,在控制台会报错:"Error: KaTeX parse error: Unexpected character: '&' at position 2: x ̲ '&'gt; y '&'gt; Z ".
比如 : 公式是
公式是
公式是
The text was updated successfully, but these errors were encountered: