0

I'm playing around with equations, which I'm trying to render in LaTeX using KaTeX.

I think I'm doing something wrong, because the HTML render is not like it is shown on the demo output on KaTeX website.

For example, for the LaTeX code:

-1\times\frac{i\times\sqrt{64}}{8}\times\sqrt{i^2}

This is what I've got:

enter image description here

This is what's expected according to the KaTeX demo:

enter image description here

In both case, it is the HTML rendering and not the MathML one.

I'm pretty sure I'm not using something correctly, but I can't point at the problem.

Any clue would be nice.

Quentin S.
  • 328
  • 2
  • 16

1 Answers1

0

Nevermind, I eventually found what was my mistake.

I just forgot to import katex stylesheet...

A simple @import '~katex/dist/katex.css'; in my styles.css did the trick.

Quentin S.
  • 328
  • 2
  • 16