MathJax-src icon indicating copy to clipboard operation
MathJax-src copied to clipboard

Refactor MathML visitors to make MathMLVisitor work like SerializedMml. (mathjax/MathJax#2920)

Open dpvc opened this issue 3 years ago • 0 comments

This PR makes the MathMLVisitor work more like the SerializedMmlVisitor in terms of handling of attributes and converting TeXAtom nodes to mrows. Common code has been moved to the common MmlVisitor class that is the root for both. This invalid moving the static data items from SerializedMmlVisitor to MmlVisitor, as well as the protected methods for managing the attribute lists, so the big chunk of additions to MmlVisitor is just moving the code from SerializedMmlVisitor. The handling of TeXAtom nodes as a special case has been removed in favor of a translation table for the node kind. Support for the new HTML nodes has been added to the MathMLVisitor.

Resolves issue mathjax/MathJax#2920.

dpvc avatar Sep 15 '22 21:09 dpvc