There are several frameworks that can be used to display math equation on web page. Usually math equestion written in LaTeX format. LaTeX is used for the communication and publication of scientific documents in many fields, including mathematics, physics, computer science, statistics etc.

MathJax and KaTeX are two popular javascript frameworks that can render LaTeX expression to beautiful math equation in browser.

The following are examples math LaTeX expression rendered with KaTeX.
To use KaTeX we just need to include katex.min.css and katex.min.js

The comparison between MathJax and KaTeX can be found here. At the time of writing this blog post, I got KaTeX is faster than MathJax. But KaTeX can not render a few expressions that MathJax can.

The comparison results could be changed in the next. Since both of them are actively developed.

## Comments