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

XML import processing maths media incorrectly #224

Closed
profnimrod opened this issue Jan 23, 2015 · 1 comment
Closed

XML import processing maths media incorrectly #224

profnimrod opened this issue Jan 23, 2015 · 1 comment

Comments

@profnimrod
Copy link

If I try to import an XML file containing maths the resulting Article fails to load.

For example if I include a media element with the following URL (which contains TeX):

https://chart.googleapis.com/chart?cht=tx&chf=bg,s,FFFFFF00&chco=000000&chl=%5C%5B%20%5Csum%20%5Climits_%7Bi%20%3D%201%7D%5E%7B72%7D%20%7Bu_i%7D%20%3C%2070%7B%5Crm%7B%5Chspace%7B10cm%7D%20Equation%205%7D%7D%5C%5D

(which can be verified by pasting the URL into any browser), the import will fail because of the '&' characters. If these are html encoded to '&' then the XML validation passes by the resulting maths fails to render because the URL is now invalid.

Any thoughts?

@profnimrod
Copy link
Author

I think the problem here was that the XML included the equation in a tag that was not part of a . If a tag is used, the equation renders just fine... also if the tag is properly embedded inside a tag, it renders fine. So I'll close this one... it was just a mistake on my part I believe.

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