The main problem is that ASCIIMathML is not evolving. It was a nice
solution when javascript was not omnipresent in the web as it is
today. Now, with all its global variables and some peculiar ways to
solve a few problems, it is bound to become a source of conflicts with
other code.
I think that David's suggestion of tag classes is a step back in the
sense that it would increase the difficulty of putting math on the
web. What needs to be replaced is the code that parses the page
contents. Roughly speaking, it currently slurps all the content as a
string and looks for delimited math expressions (ascii or latex). This
is largely inconvenient because it is not aware of the DOM structure.
Instead, the code should scan all text nodes, skip those that are
under some specified node types and parse the rest of them. In this
way, for instance, any jQuery dollar that would appear under a
<script> node would be ignored. This kind of solution can be backwards
compatible while solving problems as the one Marc reported.
--
Paulo Soares