-
Notifications
You must be signed in to change notification settings - Fork 97
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
mml3 extension not compatible [was: syntax for mml3 extension in config] #193
Comments
Untested, just off the top of my head. mathJaxApi.config({
MathJax: {
SVG: {
font: "TeX"
},
styles: {
'.mfrac': {
'font-size': '92.1%'
}
},
extensions: "MathML/mml3.js"
}
}); or following the documentation. mathJaxApi.config({
MathJax: {
SVG: {
font: "TeX"
},
styles: {
'.mfrac': {
'font-size': '92.1%'
}
},
MathML: {extensions: ["mml3.js"] }
}
}); |
Neither of those works, unfortunately. By which I mean, when I put in some mathml, I don't get a response at all from my server. No error, or anything. I assume that means the config isn't in the right format. I tried this:
And I gave it some mathml, a vertical addition problem, and got the error message: "unknown node type: mstack" Which is the same message I get when I don't try to load mml3 at all, so I can't tell whether the extension was actually loaded, or if it did load, and it doesn't like my mathml. :( |
example mathML:
|
There are two things going on here. First, it looks like the mml3 extension expects you to use the The other, and more serious, issue is that jsdom doesn't seem to implement the |
Just the way David's code is set up.
Oh, right, I forgot about that part. @corinnaSchultz sorry for writing replies on the go.
Agreed. @corinnaSchultz your best bet is probably to take the underlying xslt and run it over your MathML before passing it to mathjax-node. |
I'll hunt down an xslt transformer then, that seems like the best option. |
Thanks, @corinnaSchultz. I'm marking this upstream as we want to implement a pure JS version of this extension in core MathJax anyway (which would fix this). |
I'm trying to figure out how to enable mml3.js. It's unclear to me from the documentation what to put in my config object. Can someone help me out?
The text was updated successfully, but these errors were encountered: