<math>
<mstack>
<msrow>
<mo>+</mo>
<mn>100</mn>
</msrow>
<msline></msline>
<mn>110</mn>
</mstack>
</math>
```
```
<math>
<mstack>
<mscarries crossout=\"updiagonalstrike\">
<mn>2</mn>
<mn>12</mn>
<mscarry crossout=\"none\">
<none></none>
</mscarry>
</mscarries>
<mn>2,327</mn>
<msrow>
<mo>-</mo>
<mn> 1,156</mn>
</msrow>
<msline> å</msline>
<mn>1,171</mn>
</mstack>
</math>
```
But I keep getting "Math input error" for both of them.
Mathjax version: 3.2.2
Combined component being used: tex-mml-chtml.js
I'm loading the experimental `loader: {load: ['[mml]/mml3']}` to add experimental support for these tags.
Would you happen to know what could be the issue with rendering the above? And how to solve it?
Thanks in advance
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/ac4ab36d-4ec1-4a3a-8945-9ffabfe045d0n%40googlegroups.com.
On Jun 20, 2024, at 8:49 PM, 'Tomas Bocanera' via MathJax Users <mathja...@googlegroups.com> wrote:Forgot to mention the console.errorsIn Safari:MathJax(?): undefined is not an object (evaluating 'MML.mmlFilters.items')In Chrome:MathJax(?): Cannot read properties of undefined (reading 'items')
On Friday 21 June 2024 at 10:37:45 UTC+10 Tomas Bocanera wrote:
On a second run, seems to be working in Firefox just fine. But not in Chrome/Safari which are the ones that I'm using to test.
I've tried the config suggestions proposed here https://github.com/mathjax/MathJax/issues/2718 but no luck so far.
This is my current config:
window.MathJax = {startup: {ready() {MathJax.startup.defaultReady();MathJax.startup.document.inputJax[0].preFilters.add(function (data) {data.data = data.data.replace(/[\s\n]+<math/, '<math').replace(/math>[\n\s]+/, 'math>');}, 10);}},
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/789f0096-0d00-414f-82ca-ec81fd383aafn%40googlegroups.com.
Hi Davide. Thanks for answering.
Please disregard all my previous messages except for the last one. I don't know why they kept on getting deleted that's why I had to post so many.
In the process of replying I found out that the MML.mmlFilter.items errors were coming from the config examples I was taking from #3030 and #2718 (which you are right, they are mml-svg so they don't really apply and fixes have been already been merged in 3.2.2 which is the version I'm currently using)
I don't actually get any console errors when using the config posted below, and it does render the MathML when using Firefox but not in Chrome or Safari. If you take any of the MathML examples is it rendering for you in Chrome/Safari?
I don't have any other config set in my app.
This is my current config (Which doesn't throw any console errors):
Hi Davide. Thanks for answering.
Please disregard all my previous messages except for the last one. I don't know why my messages keep on getting deleted, that's why I had to post so many.
In the process of replying I found out that the MML.mmlFilter.items errors were coming from the config examples I was taking from 3030 and 2718 (which you are right, they are mml-svg so they don't really apply) .
I fixed the font reference. Thank you for that.
I don't have any other config on my app for Mathjax and I don't actually get any console errors when using the config posted in my last message above, and it does render the MathML when using Firefox. If you take my MathML example is it rendering for you in Chrome/Safari?
Hi Davide. Thanks for answering.
Please disregard all my previous messages except for the last one. I don't know why they keep on getting deleted that's why I had to post so many.
In the process of replying I found out that the MML.mmlFilter.items errors were coming from the config examples I was taking from #3030 and #2718 (which you are right, they are mml-svg so they don't really apply) .
I fixed the font reference. Thank you for that.
I don't have any other config on my app for Mathjax and I don't actually get any console errors when using the config posted in my last message above, and it does render the MathML when using Firefox. If you take my MathML example is it rendering for you in Chrome/Safari?
Please disregard all my previous messages except for the last one. I don't know why my messages keep on getting deleted, that's why I had to post so many.
In the process of replying I found out that the MML.mmlFilter.items errors were coming from the config examples I was taking from 3030 and 2718 (which you are right, they are mml-svg so they don't really apply) .
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>JS Bin</title></head><body>
<math><mstack><msrow><mo>+</mo><mn>100</mn></msrow><msline></msline><mn>110</mn></mstack></math>
<script>MathJax = {
loader: {load: ['[mml]/mml3']},
startup: {ready() {const {Mml3} = MathJax._.input.mathml.mml3.mml3;MathJax.startup.defaultReady();const mml3 = new Mml3(MathJax.startup.document);const adaptor = MathJax.startup.document.adaptor;const processor = new XSLTProcessor();const parsed = adaptor.parse(Mml3.XSLT, 'text/xml');processor.importStylesheet(parsed);mml3.transform = (node) => {const div = adaptor.node('div', {}, [adaptor.clone(node)]);const dom = adaptor.parse(adaptor.serializeXML(div), 'text/xml');const mml = processor.transformToDocument(dom);return (mml ? adaptor.tags(mml, 'math')[0] : node);};const MML = MathJax.startup.document.inputJax[1];MML.mmlFilters.items.pop(); // remove old filterMML.mmlFilters.add(mml3.mmlFilter.bind(mml3));}}};</script><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script></body></html>
On Saturday 22 June 2024 at 00:37:41 UTC+10 Davide Cervone wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/679bf807-8de0-458c-91e7-d708a235e324n%40googlegroups.com.