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

KaTeX: Cannot rendering some LaTeX #134

Closed
mikanIchinose opened this issue May 19, 2021 · 4 comments
Closed

KaTeX: Cannot rendering some LaTeX #134

mikanIchinose opened this issue May 19, 2021 · 4 comments

Comments

@mikanIchinose
Copy link
Contributor

Env

Nodejs: 14.15.0
yarn: 1.22.10
OS: Ubuntu 18.04

Code

$$
\begin{aligned}
\frac{D \boldsymbol{v}}{D t}=&-\frac{1}{\rho} \operatorname{grad} p+\frac{\mu}{\rho} \Delta \boldsymbol{v}+\frac{\lambda+\mu}{\rho} \operatorname{grad} \Theta+\frac{\Theta}{\rho} \operatorname{grad}(\lambda+\mu) \\
&+\frac{1}{\rho} \operatorname{grad}(\boldsymbol{v} \cdot \operatorname{grad} \mu)+\frac{1}{\rho} \operatorname{rot}(\boldsymbol{v} \times \operatorname{grad} \mu)-\frac{1}{\rho} \boldsymbol{v} \Delta \mu+\boldsymbol{g}
\end{aligned}
$$

Expected

image

Actual

image

@mikanIchinose
Copy link
Contributor Author

If \boldsymbol and \operatorname were gone, it works.

@mikanIchinose mikanIchinose changed the title KaTeX: I cannot use \boldsymbol and \operatorname KaTeX: Cannot use \boldsymbol and \operatorname May 21, 2021
@mikanIchinose
Copy link
Contributor Author

mikanIchinose commented May 21, 2021

[WIP] investigation

only KaTeX: ⭕
markdown-it + katex plugin: ⭕
slidev: ❌

@mikanIchinose mikanIchinose changed the title KaTeX: Cannot use \boldsymbol and \operatorname KaTeX: Cannot rendering some LaTeX May 21, 2021
@antfu antfu closed this as completed in e805063 May 21, 2021
@antfu
Copy link
Member

antfu commented May 21, 2021

It turns out the markdown-it-katax is relaying on katex v0.6.0. Inlined and fixed.

@mikanIchinose
Copy link
Contributor Author

mikanIchinose commented May 21, 2021

Thank you so much!!

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

No branches or pull requests

2 participants