Skip to content

Commit 0922e60

Browse files
committed
Fix source and dependencies, make sure font extensions have output as a dependency, and fix texhtml config
1 parent 7117c16 commit 0922e60

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

components/mjs/dependencies.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ export const dependencies = {
3939
'[tex]/colorv2': ['input/tex-base'],
4040
'[tex]/configmacros': ['input/tex-base', '[tex]/newcommand'],
4141
'[tex]/dsfont': ['input/tex-base'],
42-
'[tex]/empheq': ['input/tex-base', '[tex]/ams']
42+
'[tex]/empheq': ['input/tex-base', '[tex]/ams'],
4343
'[tex]/enclose': ['input/tex-base'],
4444
'[tex]/extpfeil': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'],
45-
'[tex]/gensym': ['input/tex-base'],
45+
'[tex]/gensymb': ['input/tex-base'],
4646
'[tex]/html': ['input/tex-base'],
4747
'[tex]/mathtools': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'],
4848
'[tex]/mhchem': ['input/tex-base', '[tex]/ams'],
@@ -59,7 +59,7 @@ export const dependencies = {
5959
'[tex]/unicode': ['input/tex-base'],
6060
'[tex]/units': ['input/tex-base'],
6161
'[tex]/upgreek': ['input/tex-base'],
62-
'[tex]/verb': ['input/tex-base'],
62+
'[tex]/verb': ['input/tex-base']
6363
};
6464

6565
export const paths = {

components/mjs/input/tex/extension.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export function fontExtension(id, name, pkg = `@mathjax/${name}`) {
77
const path = name.replace(/-font-extension$/, '-extension');
88
const extension = name.replace(/-font-extension$/, '');
99
combineDefaults(MathJax.config.loader, 'paths', {[path]: FONTPATH});
10+
combineDefaults(MathJax.config.loader, 'dependencies', {
11+
[`[${path}]/chtml`]: ['output/chtml'],
12+
[`[${path}]/svg`]: ['output/svg']
13+
});
1014
MathJax.config.loader[id] = {
1115
checkReady() {
1216
return MathJax.loader.load(

components/mjs/input/tex/extensions/texhtml/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"build": {
3+
"id": "[tex]/texhtml",
34
"component": "input/tex/extensions/texhtml",
45
"targets": ["input/tex/texhtml"]
56
},

components/mjs/source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const source = {
4545
'[tex]/empheq': `${src}/input/tex/extensions/empheq/empheq.js`,
4646
'[tex]/enclose': `${src}/input/tex/extensions/enclose/enclose.js`,
4747
'[tex]/extpfeil': `${src}/input/tex/extensions/extpfeil/extpfeil.js`,
48-
'[tex]/gensym': `${src}/input/tex/extensions/gensym/gensym.js`,
48+
'[tex]/gensymb': `${src}/input/tex/extensions/gensymb/gensymb.js`,
4949
'[tex]/html': `${src}/input/tex/extensions/html/html.js`,
5050
'[tex]/mathtools': `${src}/input/tex/extensions/mathtools/mathtools.js`,
5151
'[tex]/mhchem': `${src}/input/tex/extensions/mhchem/mhchem.js`,

0 commit comments

Comments
 (0)