fix equations to display latex properly

any multi-line equations with `\begin{equation}` etc. were not
rendering latex appropriately.