Mathjax+Emberjs

One of the project I’m working on involves lots of Math equations so I’m trying to use MathJax in an Emberjs app and I’m having difficulty getting anything to work.

Here’s some useful background information:

1.If I hardcode tex equations into my templates (e.g. f(a) = \frac{1}{2\pi i} \oint\frac{f(z)}{z-a}dz), they’re displayed correctly. 2.We are storing the equations in TEX format in database[which will be basically strings]. Retrieve and render it on webpage using Mathjax 3. But when we retrieve the questions from database and render it on the web page its not displaying the tex equations(e.g not converting tex to equation).

It may just be that my integration of mathjax with ember is just not correct, so I’d love some pointers if that’s the case.Thanks in advance.

I don’t know Mathjax but it seems to me you need to use tex2jax with htmlSafe like this: