I installed the plugin discourse-math and activated it from the admin panel. But, MathJax does not render the imported posts (imported from OSQA) correctly.
However, if I edit the post (just clicking on ‘edit’ and not changing a thing) and save it, the math is rendered perfectly.