inkdropapp / inkdrop-math

Add math syntax support to markdown editor and preview
https://www.inkdrop.app/
MIT License
26 stars 7 forks source link

Incorrect font with v1.2.0 #11

Closed erning closed 3 years ago

erning commented 3 years ago

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 commented 3 years ago

Good catch! Just published v1.2.1 🎉