I'm using the MathJax through the method described in the last answer of this post:
http://www.question2answer.org/qa/1996/how-can-i-configure-q2a-to-support-mathtex-or-latex
It works, but in some cases the latex results are not correctly shown. For example, if I use $$x_i w$$ the result is fine and correct, but if I use $$x_i w_j$$ it will appear as it is (not converted to latex) in the result.
Surprisingly, when I edit the post, the result of $$x_i w_j$$ appears correctly in the preview of the post ! But it still do not appear correctly after saving changes.
EDIT 1:
I have noticed that html source code of the "previw post" contains $$x_i w_j$$ written correctly (thus it is correctly rendered by MathJax), but the html source code of the "question post" (after posting the question) contains "<p>$$x<em>i w</em>j$$</p>" !! I don't know what <em> is doing here, this may explain why MathJax do not render it correctly !
EDIT 2:
Changing the editor (from the admin panel) to WYSIWYG or "Simple Editor" instead of the "markdown editor", fixed the problem.