Add latex equation rendering using katex

See the examples in mechanics-1
I found the appropriate place to put the `decode('utf-8')` so we don't get errors (this is because katex has some unicode symbols in it).