Skip to content
New issue

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

Bug with invalid mathml #1

Open
Klortho opened this issue Apr 14, 2015 · 0 comments
Open

Bug with invalid mathml #1

Klortho opened this issue Apr 14, 2015 · 0 comments

Comments

@Klortho
Copy link

Klortho commented Apr 14, 2015

This works fine:

http://localhost:16000/?q=y2

This correctly produces an error message about invalid mathml:

http://localhost:16000/?q=y2</math

But this just produces a blank screen, which is bad:

http://localhost:16000/?q=<mfracy2

This seems to be a problem with MathJax inside PhantomJS. For some reason, the MathJax error is not getting communicated back out. Try this:

  • Load up the engine.html page in a browser (make sure it's being served by a web server)
  • Change, temporarily, the mathjax script url to http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG.

Then enter this in the console:

engine.process({ 'in_format': 'mml',
        q:'<math><mfrac<mi>y</mi><mn>4</mn></mfrac></math>'
      }, 
      function() { console.log("done"); }
);

You should see the mathjax error message where the second formula was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant