-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
mathml2svg() throwing error on latest version #2879
Comments
I am not able to reproduce the issue. The |
PS, if that's not it, then can you be more specific about the actual code you are using and the MathML that you are passing to |
OK, you didn't mention that you were using the Here is a configuration that will take care of it for now: MathJax = {
loader: {load: ['[mml]/mml3']},
startup: {
ready() {
MathJax.startup.defaultReady();
const adaptor = MathJax.startup.document.adaptor;
MathJax.startup.document.inputJax[0].mmlFilters.add((args) => {
if (adaptor.kind(args.data) !== 'math') {
args.data = adaptor.tags(args.data, 'math')[0];
}
});
}
}
}; Note that as of v3.2.1, you don't need the pre-filter that you are using any longer (that issue was fixed in 3.2.1). |
Make sure we get the <math> element from mml3 conversion. (mathjax/MathJax#2879)
Issue Summary
A summary of the issue and the browser/OS environment in which it occurs. If
suitable, include the steps required to reproduce the bug.
Mathjax function mathml2svg(mathml) throws an error. This is happening after the latest release. Script that is being used is
'https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-svg.js'
Steps to Reproduce:
Downgrading to version 3.1 resolves the issue. Conversion to svg was working fine before latest 3.2.1 release.
Technical details:
Supporting information:
The text was updated successfully, but these errors were encountered: