Skip to content

Commit

Permalink
Merge pull request #992 from mathjax/fix-node-font
Browse files Browse the repository at this point in the history
Include default font configuration so that it will be loaded when input/chtml or input/svg is loaded
  • Loading branch information
dpvc authored Sep 15, 2023
2 parents a662fa7 + d9b363b commit c958700
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/mjs/node-main/node-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ const dir = global.MathJax.config.__dirname; // set up by node-main.mjs or nod
* Set up the initial configuration
*/
combineDefaults(MathJax.config, 'loader', {
paths: {'mathjax-modern': 'mathjax-modern-font'},
require: eval("(file) => import(file)"), // use dynamic imports
failed: (err) => {throw err} // pass on error message to init()'s catch function
});
combineDefaults(MathJax.config, 'output', {font: 'mathjax-modern'});

/*
* Mark the preloaded components
Expand Down

0 comments on commit c958700

Please sign in to comment.