-
-
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
Unknown node type "mstack" #2780
Comments
You have misread the documentation. In the link you provide there is a pointer to configuring the extension, and that page indicates that you must use <script>
MathJax = {
loader: {load: ['[mml]/mml3']}
};
</script> to activate the extension. There are, however, several issues with the mml3 extension (see #2718). The first, is that you need to also include <script>
MathJax = {
loader: {load: ['[mml]/mml3']},
mml: {forceReparse: true}
};
</script> and second, there is an issue with Chrome and Safari that you need to work around. This configuration should do it for the MathJax component that you are using: <script>
MathJax = {
loader: {load: ['[mml]/mml3']},
mml: {forceReparse: true},
startup: {
ready() {
MathJax.startup.defaultReady();
MathJax.startup.document.inputJax[1].preFilters.add(function (data) {
data.data = data.data.replace(/[\s\n]+<math/, '<math').replace(/math>[\n\s]+/, 'math>');
}, 10);
}
}
};
</script> The Chrome/Safari issue should be resolved and the documentation updated in the next release. |
@dpvc The above filter wasn't working and I believe it was due to inputJax[1]. It should be inputJax[0]. |
@svejdani, it depends on the MathJax file that you are loading. If you used |
Awesome thanks, that makes more sense! |
@dpvc after adding configuration, that you have mentioned, I am getting following error:
To reproduce, here you have jsbin: https://jsbin.com/kuwujesure/1/edit?html,console,output |
@chrisooo3, only he I will respond in your new issue #3030 rather than in this older issue. |
Issue Summary
Hi,
I'm trying to parse a mml formula, but show error: Unknown node type "mstack".
I read in documentation that MathML3 is implemented in version 3 and there isn't needed to import the extension.
Steps to Reproduce:
Here is an example.
Must be shown:
Technical details:
Thank you!
The text was updated successfully, but these errors were encountered: