Closed skalee closed 3 years ago
I found the missing bit of logic in the asciimath.js implementation at https://github.com/asciimath/asciimathml/blob/master/ASCIIMathML.js#L605 tagst = (("A">st || st>"Z") && ("a">st || st>"z")?"mo":"mi");
This implementation doesn't have this heuristic in place. Should be easy enough to fix.
Problem description
Given example:
Expected result:
Actual result:
That is it includes
<mi>%</mi>
instead of<mo>%</mo>
.Rationale
<mo>%</mo>
.Can you provide a fix?
I think so.