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

Incorrect font with v1.2.0 #11

Closed
erning opened this issue Jul 27, 2021 · 1 comment
Closed

Incorrect font with v1.2.0 #11

erning opened this issue Jul 27, 2021 · 1 comment

Comments

@erning
Copy link

erning commented Jul 27, 2021

It seems that the plugin is still using the old class names of KaTaX style, resulting in incorrect rendering results.

Here's the screen shot:

The expected results should be

According to the KaTaX's changelog, class name .mathdefault has been changed to .mathnormal.

Currently, I add the following code to styles.less as a workaround

.katex .mathnormal {
  font-family: KaTeX_Math;
  font-style: italic;
}
@craftzdog
Copy link
Contributor

Good catch! Just published v1.2.1 🎉

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