-
Notifications
You must be signed in to change notification settings - Fork 112
公式渲染出来两遍,一次是katex,一遍是html的,不知道作者遇到过没? #284
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
Comments
我也遇到了,目前还没找到解决方案,评论一下提提热度 |
是不是少引用样式了,研究 Bytemd 时遇到过
|
应该就是缺样式,不过我找了半天没看到docs里有引入样式的痕迹= =很奇怪 |
我在引入这个 css 之后,问题解决了
|
这种方式肯定能解决,不过我尝试跑源码的docs跑不起来,而且没看到源码的docs里面有引入动作,看不太懂他文档里面咋搞的 |
微信小程序不兼容css中的*,而import "katex/dist/katex.css";这里有就报错了,怎么办? |
样式文件cv出来改改呗 |
我直接引用import "katex/dist/katex.css"显示出来的样式和引用从官方下载下来的katex.css显示的不一样,引用官方下载的文件显示不出来根号。 |
我使用的 hugo,也有这个问题,正如 3 楼所说,确实是少了样式,我再添加这行代码后,解决了 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"> |
数据:


韦达定理描述了一元二次方程中根与系数之间的关系。对于一元二次方程$ax^2+bx+c=0$,若其两根为$x_1$和$x_2$,则有:\n\n1. 根的和:$x_1 + x_2 = -\frac{b}{a}$\n2. 根的积:$x_1 \cdot x_2 = \frac{c}{a}$\n\n这些关系帮助理解方程的解的性质
渲染结果:
dom审查:
如图所示,dom审查的时候,看到每一条公式都会除了katex-mathml 多渲染出来一个katex-html,这个咋解决,不胜感激
The text was updated successfully, but these errors were encountered: