File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import {hasWindow} from '#js/util/context.js';
44export function fontExtension ( id , name , pkg = `@mathjax/${ name } ` ) {
55 if ( MathJax . loader ) {
66 const FONTPATH = hasWindow ? `https://cdn.jsdelivr.net/npm/${ name } ` : pkg ;
7- const path = name . replace ( / - f o n t - e x t e n s i o n $ / , '-extension' ) . replace ( / ^ @ .* ?\/ / , '' ) ;
8- const extension = name . replace ( / - f o n t - e x t e n s i o n $ / , '' ) ;
7+ const path = name . replace ( / - f o n t - e x t e n s i o n $ / , '-extension' ) ;
98 const jax = ( MathJax . config ?. startup ?. output || 'chtml' ) ;
109 combineDefaults ( MathJax . config . loader , 'paths' , { [ path ] : FONTPATH } ) ;
1110 combineDefaults ( MathJax . config . loader , 'dependencies' , { [ `[${ path } ]/${ jax } ` ] : [ `output/${ jax } ` ] } ) ;
Original file line number Diff line number Diff line change 11import './lib/bbm.js' ;
22import { fontExtension } from '../../extension.js' ;
33
4- fontExtension ( '[tex]/bbm' , '@mathjax/ mathjax-bbm-font-extension' ) ;
4+ fontExtension ( '[tex]/bbm' , 'mathjax-bbm-font-extension' ) ;
Original file line number Diff line number Diff line change 11import './lib/bboldx.js' ;
22import { fontExtension } from '../../extension.js' ;
33
4- fontExtension ( '[tex]/bboldx' , '@mathjax/ mathjax-bboldx-font-extension' ) ;
4+ fontExtension ( '[tex]/bboldx' , 'mathjax-bboldx-font-extension' ) ;
Original file line number Diff line number Diff line change 11import './lib/dsfont.js' ;
22import { fontExtension } from '../../extension.js' ;
33
4- fontExtension ( '[tex]/dsfont' , '@mathjax/ mathjax-dsfont-font-extension' ) ;
4+ fontExtension ( '[tex]/dsfont' , 'mathjax-dsfont-font-extension' ) ;
You can’t perform that action at this time.
0 commit comments