mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +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 $attributes
|
||||
* @param Parser $parser
|
||||
* @return string
|
||||
* @return array
|
||||
*/
|
||||
static function mathTagHook( $content, $attributes, $parser ) {
|
||||
global $wgContLang, $wgUseMathJax, $wgMathDisableTexFilter;
|
||||
global $wgUseMathJax, $wgMathDisableTexFilter;
|
||||
|
||||
if ( trim( $content ) === '' ) { // bug 8372
|
||||
return '';
|
||||
|
@ -128,10 +128,9 @@ class MathHooks {
|
|||
$parser->getOutput()->addModuleStyles( array( 'ext.math.styles' ) );
|
||||
|
||||
$renderer->writeCache();
|
||||
$result = $wgContLang->armourMath( $renderedMath );
|
||||
wfProfileOut( __METHOD__ );
|
||||
|
||||
return $result;
|
||||
return array( $renderedMath, "markerType" => 'nowiki' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue