mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-25 07:56:58 +00:00
Merge "Added a hook for modifications to MathJax"
This commit is contained in:
commit
6468a67468
4
Math.php
4
Math.php
|
@ -465,6 +465,10 @@ $wgResourceModules += array(
|
|||
'scripts' => array( 'Fraktur/Bold/BasicLatin.js', 'Fraktur/Bold/Other.js', 'Fraktur/Bold/PUA.js', 'Fraktur/Regular/BasicLatin.js', 'Fraktur/Regular/Other.js', 'Fraktur/Regular/PUA.js', 'SansSerif/Bold/BasicLatin.js', 'SansSerif/Bold/CombDiacritMarks.js', 'SansSerif/Bold/Other.js', 'SansSerif/Italic/BasicLatin.js', 'SansSerif/Italic/CombDiacritMarks.js', 'SansSerif/Italic/Other.js', 'SansSerif/Regular/BasicLatin.js', 'SansSerif/Regular/CombDiacritMarks.js', 'SansSerif/Regular/Other.js', 'Script/Regular/BasicLatin.js', 'Typewriter/Regular/BasicLatin.js', 'Typewriter/Regular/CombDiacritMarks.js', 'Typewriter/Regular/Other.js' )
|
||||
) + $moduleTemplateSVG
|
||||
);
|
||||
$wgResourceModules += array(
|
||||
'ext.math.mathjax.customize' => array(
|
||||
'dependencies' => 'ext.math.mathjax.mathjax' )
|
||||
);
|
||||
|
||||
$moduleTemplate = array(
|
||||
'localBasePath' => __DIR__ . '/modules',
|
||||
|
|
|
@ -103,6 +103,8 @@
|
|||
mathJax.Init = function () {
|
||||
// Configure MathJax
|
||||
MathJax.Hub.Config( mathJax.config );
|
||||
// This hook can be used to override MathJax configuration.
|
||||
mw.loader.load( 'ext.math.mathjax.customize' );
|
||||
MathJax.OutputJax.fontDir = mw.config.get( 'wgExtensionAssetsPath' ) + '/Math/modules/MathJax/fonts';
|
||||
|
||||
// Redefine MathJax.Hub.Startup.Jax
|
||||
|
|
Loading…
Reference in a new issue