Hi Gautam,
> Yes I am interested in writing a demo.
Great. If you need to ping me on GitHub,
http://github.com/r-gaia-cs/.
> But I have my exams starting in a few days, so I might work slowly.
No problem for me. Just let me know of your progress and problems.
> So you say that I should start with MathML?
Yes,
http://www.w3.org/Math/.
> I have used mathjax once to render equations on a
> webpage once but I didn't go into the details and I only used
> Latex commands.
>
> Does using MathML mean that the user has to type using the MathML tags?
No. There is a lot of tools to convert LaTeX to MathML
in almost all languages that you want.
MathJax can do it, but if you prefer something more small you can try
https://github.com/fred-wang/TeXZilla.
In case you want to convert full LaTeX or Markdown + LaTeX math to HTML+MathML
I recommend you to try
http://pandoc.org/.
> I haven't worked with MathML before. So where should I begin?
If you already worked with Javascript to do HTML/DOM manipulation
you already have all you need to know to start.
You should start working directly with MathML
and for that you will need Firefox
(sorry but Chrome doesn't has native support for MathML).
I recommend that you start with a small MathML expression, e.g.
<math display="block" xmlns="
http://www.w3.org/1998/Math/MathML">
<msqrt>
<mi>x</mi>
</msqrt>
</math>
and try to do basic things, e.g.
1. Replace the "x" with 2.
2. Replace the "x" with "x + 1".
3. Remove the "sqrt".
and keeping the MathML valid.
For help you with this basic task I suggest you to take a look at
https://developer.mozilla.org/en-US/docs/Web/MathML and
https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project.
Thanks,
Raniere