Skip to content

Commit 2a5a755

Browse files
authored
Merge branch 'develop' into context
2 parents 7b16668 + b7d88a0 commit 2a5a755

99 files changed

Lines changed: 2786 additions & 1366 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

components/bin/pack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async function webpackLib(dir) {
126126
}
127127
const list = [];
128128
for (const module of modules) {
129-
if (module.moduleType.match(/javascript/)) {
129+
if (module.moduleType.match(/javascript|json/)) {
130130
let name = (module.nameForCondition || module.name)
131131
.replace(compRE, '[components]')
132132
.replace(nodeRE, '[node]')

components/bin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"#menu/*": "mj-context-menu/cjs/*",
88
"#sre/*": "speech-rule-engine/cjs/*",
99
"#mhchem/*": "mhchemparser/dist/*",
10-
"#default-font/*": "mathjax-modern-font/cjs/*"
10+
"#default-font/*": "mathjax-newcm-font/cjs/*"
1111
}
1212
}

components/mjs/a11y/semantic-enrich/semantic-enrich.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './lib/semantic-enrich.js';
22

33
import {combineDefaults} from '#js/components/global.js';
4-
import {Sre} from '#js/a11y/sre.js';
4+
import * as Sre from '#js/a11y/sre.js';
55
import {EnrichHandler} from '#js/a11y/semantic-enrich.js';
66
import {MathML} from '#js/input/mathml.js';
77

components/mjs/a11y/sre/sre.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './lib/sre.js';
22
import './sre_config.js';
3-
import {Sre} from '#js/a11y/sre.js';
43
import {context} from '#js/util/context.js';
4+
import * as Sre from '#js/a11y/sre.js';
55

66
export {Sre};
77

components/mjs/a11y/util-lab.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

components/mjs/a11y/util-pack.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

components/mjs/a11y/util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import './semantic-enrich/semantic-enrich.js';
55
import './explorer/explorer.js';
66
import {MathMaps} from '#js/a11y/mathmaps.js';
77

8-
const base = require('speech-rule-engine/lib/mathmaps/base.json');
9-
const en = require('speech-rule-engine/lib/mathmaps/en.json');
10-
const nemeth = require('speech-rule-engine/lib/mathmaps/nemeth.json');
8+
import base from 'speech-rule-engine/lib/mathmaps/base.json' with {type: 'json'};
9+
import en from 'speech-rule-engine/lib/mathmaps/en.json' with {type: 'json'};
10+
import nemeth from 'speech-rule-engine/lib/mathmaps/nemeth.json' with {type: 'json'};
1111

1212
Loader.preLoad(
1313
'a11y/sre',

components/mjs/latest/config.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

components/mjs/latest/latest.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

components/mjs/node-main/node-main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const dir = global.MathJax.config.__dirname; // set up by node-main.mjs or nod
3434
* Set up the initial configuration
3535
*/
3636
combineDefaults(MathJax.config, 'loader', {
37-
paths: {'mathjax-modern': 'mathjax-modern-font'},
37+
paths: {'mathjax-newcm': 'mathjax-newcm-font'},
3838
require: eval("(file) => import(file)"), // use dynamic imports
3939
failed: (err) => {throw err} // pass on error message to init()'s catch function
4040
});
41-
combineDefaults(MathJax.config, 'output', {font: 'mathjax-modern'});
41+
combineDefaults(MathJax.config, 'output', {font: 'mathjax-newcm'});
4242

4343
/*
4444
* Mark the preloaded components

0 commit comments

Comments
 (0)