Skip to content

Commit 41565a9

Browse files
committed
Release version 3.2.0.
2 parents 22a626b + 331eb8b commit 41565a9

File tree

479 files changed

+7925
-4213
lines changed

Some content is hidden

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

479 files changed

+7925
-4213
lines changed

components/bin/pack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function fileSize(file) {
4848
/**
4949
* Regular expressions for the components directory and the MathJax .js location
5050
*/
51-
const compRE = fileRegExp(path.dirname(__dirname));
51+
const compRE = fileRegExp(path.join(path.dirname(__dirname), 'src'));
5252
const rootRE = fileRegExp(path.join(path.dirname(path.dirname(__dirname)), 'js'));
5353
const nodeRE = fileRegExp(path.join(path.dirname(path.dirname(__dirname)), 'node_modules'));
5454

components/src/dependencies.js

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1+
/*************************************************************
2+
*
3+
* Copyright (c) 2019-2021 The MathJax Consortium
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
118
export const dependencies = {
219
'a11y/semantic-enrich': ['input/mml', '[sre]'],
320
'a11y/complexity': ['a11y/semantic-enrich'],
421
'a11y/explorer': ['a11y/semantic-enrich', 'ui/menu'],
22+
'[mml]/mml3': ['input/mml'],
523
'[tex]/all-packages': ['input/tex-base'],
624
'[tex]/action': ['input/tex-base', '[tex]/newcommand'],
725
'[tex]/autoload': ['input/tex-base', '[tex]/require'],
@@ -12,26 +30,34 @@ export const dependencies = {
1230
'[tex]/braket': ['input/tex-base'],
1331
'[tex]/bussproofs': ['input/tex-base'],
1432
'[tex]/cancel': ['input/tex-base', '[tex]/enclose'],
33+
'[tex]/centernot': ['input/tex-base'],
1534
'[tex]/color': ['input/tex-base'],
1635
'[tex]/colorv2': ['input/tex-base'],
36+
'[tex]/colortbl': ['input/tex-base', '[tex]/color'],
1737
'[tex]/configmacros': ['input/tex-base', '[tex]/newcommand'],
1838
'[tex]/enclose': ['input/tex-base'],
1939
'[tex]/extpfeil': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'],
2040
'[tex]/html': ['input/tex-base'],
41+
'[tex]/mathtools': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'],
2142
'[tex]/mhchem': ['input/tex-base', '[tex]/ams'],
2243
'[tex]/newcommand': ['input/tex-base'],
2344
'[tex]/noerrors': ['input/tex-base'],
2445
'[tex]/noundefined': ['input/tex-base'],
2546
'[tex]/physics': ['input/tex-base'],
2647
'[tex]/require': ['input/tex-base'],
48+
'[tex]/setoptions': ['input/tex-base'],
2749
'[tex]/tagformat': ['input/tex-base'],
50+
'[tex]/textcomp': ['input/tex-base', '[tex]/textmacros'],
2851
'[tex]/textmacros': ['input/tex-base'],
2952
'[tex]/unicode': ['input/tex-base'],
30-
'[tex]/verb': ['input/tex-base']
53+
'[tex]/verb': ['input/tex-base'],
54+
'[tex]/cases': ['[tex]/empheq'],
55+
'[tex]/empheq': ['input/tex-base', '[tex]/ams']
3156
};
3257

3358
export const paths = {
3459
tex: '[mathjax]/input/tex/extensions',
60+
mml: '[mathjax]/input/mml/extensions',
3561
sre: '[mathjax]/sre/' + (typeof window === 'undefined' ? 'sre-node' : 'sre_browser')
3662
};
3763

@@ -44,21 +70,28 @@ const allPackages = [
4470
'[tex]/braket',
4571
'[tex]/bussproofs',
4672
'[tex]/cancel',
73+
'[tex]/centernot',
4774
'[tex]/color',
75+
'[tex]/colortbl',
4876
'[tex]/configmacros',
4977
'[tex]/enclose',
5078
'[tex]/extpfeil',
5179
'[tex]/html',
80+
'[tex]/mathtools',
5281
'[tex]/mhchem',
5382
'[tex]/newcommand',
5483
'[tex]/noerrors',
5584
'[tex]/noundefined',
5685
'[tex]/physics',
5786
'[tex]/require',
87+
'[tex]/setoptions',
5888
'[tex]/tagformat',
89+
'[tex]/textcomp',
5990
'[tex]/textmacros',
6091
'[tex]/unicode',
61-
'[tex]/verb'
92+
'[tex]/verb',
93+
'[tex]/cases',
94+
'[tex]/empheq'
6295
];
6396

6497
export const provides = {

components/src/input/mml/build.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"component": "inpu/mml",
3-
"targets": ["input/mathml.ts", "input/mathml"]
3+
"targets": [
4+
"input/mathml.ts",
5+
"input/mathml"
6+
],
7+
"excludeSubdirs": "true"
48
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"component": "input/mml/extensions/mml3",
3+
"targets": ["input/mathml/mml3"]
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"to": "../../../../../../es5/input/mml/extensions",
3+
"from": "../../../../../../ts/input/mathml/mml3",
4+
"copy": [
5+
"mml3.sef.json"
6+
]
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import './lib/mml3.js';
2+
3+
import {Mml3Handler} from '../../../../../../js/input/mathml/mml3/mml3.js';
4+
5+
if (MathJax.startup) {
6+
MathJax.startup.extendHandler(handler => Mml3Handler(handler));
7+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const PACKAGE = require('../../../../../webpack.common.js');
2+
3+
module.exports = PACKAGE(
4+
'input/mml/extensions/mml3', // the package to build
5+
'../../../../../../js', // location of the MathJax js library
6+
[ // packages to link to
7+
'components/src/input/mml/lib',
8+
'components/src/core/lib'
9+
],
10+
__dirname // our directory
11+
);

components/src/input/tex-base/build.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"targets": [
44
"input/tex.ts",
55
"input/tex",
6-
"input/tex/base",
7-
"util/entities/n.ts",
8-
"util/entities/p.ts",
9-
"util/entities/r.ts"
6+
"input/tex/base"
107
],
118
"exclude": ["input/tex/AllPackages.ts"],
129
"excludeSubdirs": "true"

components/src/input/tex-full/build.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
"component": "input/tex-full",
33
"targets": [
44
"input/tex.ts",
5-
"input/tex",
6-
"util/entities/n.ts",
7-
"util/entities/p.ts",
8-
"util/entities/r.ts"
9-
],
10-
"exclude": [
11-
"input/tex/mhchem/mhchem_parser.d.ts"
5+
"input/tex"
126
]
137
}
148

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import './lib/tex-full.js';
22

33
import {registerTeX} from '../tex/register.js';
4-
import {rename} from '../tex/extensions/rename.js';
54
import {Loader} from '../../../../js/components/loader.js';
65
import {AllPackages} from '../../../../js/input/tex/AllPackages.js';
76
import '../../../../js/input/tex/require/RequireConfiguration.js';
@@ -13,7 +12,3 @@ Loader.preLoad(
1312
);
1413

1514
registerTeX(['require',...AllPackages]);
16-
rename('amsCd', 'amscd', true);
17-
rename('colorV2', 'colorv2', false);
18-
rename('configMacros', 'configmacros', false);
19-
rename('tagFormat', 'tagformat', true);

0 commit comments

Comments
 (0)