@@ -12,7 +12,7 @@ const version_id = 'dev',
1212
1313/** @summary version date
1414 * @desc Release date in format day/month/year like '14/04/2022' */
15- version_date = '11 /09/2025',
15+ version_date = '16 /09/2025',
1616
1717/** @summary version id and date
1818 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -10843,7 +10843,8 @@ async function loadMathjax() {
1084310843 displayIndent: '0', // default for indentshift when set to 'auto'
1084410844 fontCache: 'local', // or 'global' or 'none'
1084510845 localID: null, // ID to use for local font cache (for single equation processing)
10846- blacker: 3 // the stroke-width to use for SVG character paths
10846+ internalSpeechTitles: true, // insert <title> tags with speech content
10847+ titleID: 0 // initial id number to use for aria-labeledby titles
1084710848 };
1084810849
1084910850 if (!isNodeJs()) {
@@ -10868,12 +10869,12 @@ async function loadMathjax() {
1086810869 }
1086910870 };
1087010871
10871- let mj_dir = '../mathjax/4.0 .0';
10872+ let mj_dir = '../mathjax/3.2 .0';
1087210873 if (browser.webwindow && exports.source_dir.indexOf('https://root.cern/js') < 0 && exports.source_dir.indexOf('https://jsroot.gsi.de') < 0)
1087310874 mj_dir = 'mathjax';
1087410875
10875- return loadScript(exports.source_dir + mj_dir + '/tex-svg.js')
10876- .catch(() => loadScript('https://cdn.jsdelivr.net/npm/mathjax@4 /tex-svg.js'))
10876+ return loadScript(exports.source_dir + mj_dir + '/es5/ tex-svg.js')
10877+ .catch(() => loadScript('https://cdn.jsdelivr.net/npm/mathjax@3.2.0/es5 /tex-svg.js'))
1087710878 .then(() => promise);
1087810879 }
1087910880
@@ -11292,7 +11293,7 @@ function applyAttributesToMathJax(painter, mj_node, svg, arg, font_size, svg_fac
1129211293 * @private */
1129311294async function produceMathjax(painter, mj_node, arg) {
1129411295 const mtext = translateMath(arg.text, arg.latex, arg.color, painter),
11295- options = { em: arg.font.size, ex: arg.font.size/2, family: arg.font.name, scale: 1, containerWidth: -1 };
11296+ options = { em: arg.font.size, ex: arg.font.size/2, family: arg.font.name, scale: 1, containerWidth: -1, lineWidth: 100000 };
1129611297
1129711298 return loadMathjax()
1129811299 .then(mj => mj.tex2svgPromise(mtext, options))
0 commit comments