# displaying TeX in web app

First I tried to ask this question on stackoverflow but it looks like that it's TeX specific.

I'm having a TeX file on server, and need to display it in web page. The first thing I was thinking about was MathJax javascript TeX renderer (it renders TeX inside browser). But it does not support stuff like renewcommand or \begin{theorem}...\end{theorem}. So it looks like everything should be compiled on server side.

And here are my questions:

1. Compiling TeX to MathML will be the easiest way for me... Still I can't find TeX to MathML converter? Can you advise me an adequate TeX to MathML converter?
2. Does MathML covers common part of tex stuff?
3. Is it possible to change automaticaly (e.g. with some utility) stuff like \begin{theorem}...\end{theorem} to something that can be compiled without any packages (so that I can path TeX to MathJAX interpriter).
-
actually, I asked a similar question here: tex.stackexchange.com/questions/127867/… – carsten Aug 19 '13 at 22:22