2022-11-27 17:17:29 +00:00
|
|
|
const adaptor = MathJax._.adaptors.liteAdaptor.liteAdaptor();
|
|
|
|
|
MathJax._.handlers.html_ts.RegisterHTMLHandler(adaptor)
|
|
|
|
|
const html = MathJax._.mathjax.mathjax.document('', {
|
2023-08-08 19:24:35 +00:00
|
|
|
InputJax: new MathJax._.input.tex_ts.TeX({ packages: ['base', 'mathtools', 'ams', 'amscd', 'braket', 'cancel', 'cases', 'color', 'gensymb', 'mhchem', 'physics'] }),
|
2025-01-27 21:43:13 +00:00
|
|
|
OutputJax: new MathJax._.output.svg_ts.SVG({fontCache: 'none'}),
|
2022-11-27 17:17:29 +00:00
|
|
|
});
|
2025-01-16 01:16:19 +00:00
|
|
|
|
|
|
|
|
if (typeof globalThis !== 'undefined') {
|
|
|
|
|
globalThis.adaptor = adaptor;
|
|
|
|
|
globalThis.html = html;
|
|
|
|
|
}
|