Skip to content

Conversation

physikerwelt
Copy link

@pkra
Copy link

pkra commented Aug 5, 2014

Hm. Doesn't 44ee2cf already cover this?

@physikerwelt
Copy link
Author

no for the tex annotation mml.isToken evaluates to true
See https://gist.github.com/physikerwelt/3f452ee993256868f01d for a minimal sample.

@dpvc
Copy link
Owner

dpvc commented Aug 5, 2014

for the tex annotation mml.isToken evaluates to true

Are you using v2.4? This changed recently, and I think it was v2.4 where the difference occurred. The annotation node should not have isToken true, and if it does, then that needs to be fixed, not hacked here.

@physikerwelt
Copy link
Author

OK that might be the problem, we use the wmf clone.
I would love to re-factor that, the only problem is that there is a lot of files in MathJax that won't go though the code review.
https://github.com/wikimedia/mediawiki-extensions-Math/blob/master/.gitignore
I need to check if I can remove those files without trouble.

@dpvc
Copy link
Owner

dpvc commented Aug 5, 2014

I checked and the fix for the incorrect isToken on annotation elements was Feb 20th this year (this commit), which makes it part of the changes for v2.4. It was in reference to issue mathjax#376.

@physikerwelt
Copy link
Author

@dpvc thank you. But I think cherry-picking the changes is a dead end. e.g. unpacked/extensions/toMathML.js does not exist in the wmf clone. I think the way to go is to update to 2.4. Maybe @fred-wang would like to do that?

@pkra
Copy link

pkra commented Aug 6, 2014

Why not follow our original advice from the User Group and create a single JavaScript file for on-the-fly patches of MathJax? That way you can cherry pick without touching the copy of MathJax.

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

Successfully merging this pull request may close these issues.

3 participants