You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[...] to handle requests for css when there is no request for html or htmlNode. You may want to move line 594 to the top of that function, right before line 566.
If I make the change, the following test still fails.
vartape=require('tape');varmjAPI=require("../lib/main.js");tape('CSS output',function(t){t.plan(1);mjAPI.start();vartex='x';mjAPI.typeset({math: tex,format: "TeX",css: true},function(data){t.ok(data.css,'css output while no other output');});});
Digging a little bit, CHTMLSTYLES is undefined at that point. Maybe it's a restarting issue?
The text was updated successfully, but these errors were encountered:
OK, I checked a little further, and I had misremembered how things worked. I thought both output jax had been forced to load, but it is only the input jax that are forced. The output jax defaults to SVG unless data.html (or now data.htmlNode) is specified, so that's why the CHTMLSTYLES its undefined. So you are probably right, adding data.css to line 687 is probably the answer. you will also need to add it to line 787, I suspect, so that if both data.css and data.svg are specified (an unlikely case), you get both.
Extracting this from #289 (comment)
If I make the change, the following test still fails.
Digging a little bit,
CHTMLSTYLES
is undefined at that point. Maybe it's a restarting issue?The text was updated successfully, but these errors were encountered: