Closed Discordius closed 6 years ago
Thanks for the report!
Ok, I can reproduce this. One workaround is to move the macro definitions to the mathjax-node part of the configuration (if that's feasible).
Since nothing obvious jumps out at me, I'll try to find time to dig into this.
@roman-spiridonov any thoughts on why the error message is for the wrong equation?
Looks like a regression in 3.0.0 so downgrading to 2.0.0 may be another workaround.
Ah, got it. This regression due to the fix for #47 - the sorting moves a script with \cL
before the script with the macro definition.
Yeah, sadly moving the macro definitions to the mathjax-node part doesn't work, because I am doing a content import from a database that had them defined in the body, and I would really like to avoid having to extract them from there.
Right, that was just a first thought for a workaround. Now that I'm reasonably sure about the cause, I just need to find some time to fix it.
v3.0.1 is out.
Ok, I am really quite confused by this and am trying to figure this out, so sorry if this turns out to be some kind of bug in MathJax.
I am trying to parse the following HTML document:
However, if I do this, then the
\cL
macro fails to be parsed, and I am getting the following error:And now this is where it gets confusing. If I change the order of the first two
\newcommands
, i.e. change the first few lines to the following:Then I instead get the error that
\NN
isn't found.And even weirder, if I just add a random newcommand to the second line like this:
Then everything works fine and I don't get any errors.
Here is my complete mathjax-node-page setup: