Merge "Added a hook for modifications to MathJax"

This commit is contained in:
jenkins-bot 2014-08-19 15:11:35 +00:00 committed by Gerrit Code Review
commit 6468a67468
2 changed files with 6 additions and 0 deletions

View file

@ -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',

View file

@ -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