my goal is to build a mathjax based equation manipulator. a simple toy example would be to transform:
a = bc
to:
with "button press" ease. this might become increasingly useful with large, complex equations and a long list of possible transformations.
to achieve this goal, i will need to be able to manipulate the equation data structure as a tree. i assume that this tree structure exists someplace inside mathjax, but i am having a hard time figuring out where.
Q: does anyone know how i would get the tree form an equation?
Q: is this the right sort of place to start?
var math = MathJax.Hub.getAllJax("#elementId")[0];
i've seen references to "Presentation MathML", which looks like the WRONG thing, in that it has stripped out the hierarchical structure and thus is not a plausible candidate for manipulation.
thanks,
-trebor