Merge "Add PNG and MathPlayer fallback for Wikidata user"
This commit is contained in:
commit
7787f3454d
@ -42,6 +42,7 @@ class MathWikidataHook {
|
||||
'formatter-factory-callback' => function ( $format, FormatterOptions $options ) {
|
||||
global $wgOut;
|
||||
$wgOut->addModuleStyles( [ 'ext.math.styles' ] );
|
||||
$wgOut->addModules( [ 'ext.math.scripts' ] );
|
||||
return new MathFormatter( $format );
|
||||
},
|
||||
'rdf-builder-factory-callback' => function (
|
||||
@ -71,6 +72,7 @@ class MathWikidataHook {
|
||||
'formatter-factory-callback' => function ( $format, FormatterOptions $options ) {
|
||||
global $wgOut;
|
||||
$wgOut->addModuleStyles( [ 'ext.math.styles' ] );
|
||||
$wgOut->addModules( [ 'ext.math.scripts' ] );
|
||||
return new MathFormatter( $format );
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user