Embedding a JavaScript Library (KaTeX) in Go

from blog Blog on hjr265.me, | ↗ original
KaTeX is the fan-favourite way of doing math and equations on the web. The library is simple to use and easy to reason about. But it is JavaScript. How do you build a Go program that renders math and equations like KaTeX? You embed KaTeX in your Go program. Several Go packages allow you to run JavaScript from within Go. In this post, we will use...