mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 09:20:42 +00:00
remove armourMath and wgContLang (bug 60799)
* armourMath is no longer needed
Bug: 60799
Change-Id: I1134d34d403b527821a1f7ccd370e78cf6197d71
(cherry picked from commit 2c555baf4f
)
This commit is contained in:
parent
c5b0b15d8f
commit
fcd542c2c5
|
@ -89,10 +89,10 @@ class MathHooks {
|
||||||
* @param $content (the LaTeX input)
|
* @param $content (the LaTeX input)
|
||||||
* @param $attributes
|
* @param $attributes
|
||||||
* @param Parser $parser
|
* @param Parser $parser
|
||||||
* @return string
|
* @return array
|
||||||
*/
|
*/
|
||||||
static function mathTagHook( $content, $attributes, $parser ) {
|
static function mathTagHook( $content, $attributes, $parser ) {
|
||||||
global $wgContLang, $wgUseMathJax, $wgMathDisableTexFilter;
|
global $wgUseMathJax, $wgMathDisableTexFilter;
|
||||||
|
|
||||||
if ( trim( $content ) === '' ) { // bug 8372
|
if ( trim( $content ) === '' ) { // bug 8372
|
||||||
return '';
|
return '';
|
||||||
|
@ -128,10 +128,9 @@ class MathHooks {
|
||||||
$parser->getOutput()->addModuleStyles( array( 'ext.math.styles' ) );
|
$parser->getOutput()->addModuleStyles( array( 'ext.math.styles' ) );
|
||||||
|
|
||||||
$renderer->writeCache();
|
$renderer->writeCache();
|
||||||
$result = $wgContLang->armourMath( $renderedMath );
|
|
||||||
wfProfileOut( __METHOD__ );
|
wfProfileOut( __METHOD__ );
|
||||||
|
|
||||||
return $result;
|
return array( $renderedMath, "markerType" => 'nowiki' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue