Closed pkra closed 1 year ago
This turns out to be a jsdom issue (actually, a cssstyle issue). It looks like named colors were only added to cssstyle 16 days ago! Try updating your copy of cssstyle to version 1.2.1, and see if that takes care of it. Doing npm install
didn't seem to update it for me, but removing the package-lock.json file and then npm install did, so I guess the package-lock file needs to be updated.
I tried to update jsdom to version 13 (we are at 11) but both 13 and 12 caused file load errors, and I didn't try to track that down. I will have to see if I can figure out why version 11 loads fine but not later versions of jsdom.
OK, it turns out that the addition of version numbers to the js files is breaking jsdom's file loading for versions 12 and above. Adding
MathJax.Ajax.fileRev = function () {return ''};
to the AuthorInit
function in lib/main.js
resolves the problem, in case you want to update to the current jsdom.
Thanks, @dpvc. I think the workaround should be sufficient for the user who reported the issue.
Upgrading jsdom to latest seems like a good idea though. I'll make a PR when I get the chance.
Cleaning up my old issues.
Originally reported at https://github.com/pkra/mathjax-node-page/issues/74 but this seems a mathjax-node issues
E.g.,
\bbox[lightgrey,2pt]{\text{Some lightgrey text}}
generatesbut in the browser we get e.g.
I.e., the mjx-mstyle node has lost its inline style.