We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given example:
AsciiMath.parse("40%").to_mathml
Expected result:
<math><mn>40</mn><mo>%</mo></math>
Actual result:
<math><mn>40</mn><mi>%</mi></math>
That is it includes <mi>%</mi> instead of <mo>%</mo>.
<mi>%</mi>
<mo>%</mo>
I think so.
The text was updated successfully, but these errors were encountered:
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");
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.
Sorry, something went wrong.
#58 produce <mo> tags instead of <mi> tags for non-alphanumeric s…
<mo>
<mi>
17b3711
…trings
#58 add extended test case from PR #61
978579c
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: