From d9b363b8ef09af8739f396902468dc1ae0c496d2 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 22 Aug 2023 12:49:41 -0400 Subject: [PATCH] Include default font configuration so that it will be loaded when input/chtml or input/svg is loaded --- components/mjs/node-main/node-main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/mjs/node-main/node-main.js b/components/mjs/node-main/node-main.js index a0ca4cfad..8ebdaea86 100644 --- a/components/mjs/node-main/node-main.js +++ b/components/mjs/node-main/node-main.js @@ -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