Author: physik
Description:
armourMath does:
- Armour rendered math against conversion.
- Escape special chars in parsed math text. (in most cases are img elements) *
- @param $text String: text to armour against conversion
- @return String: armoured text where { and } have been converted to
- { and }
*/
public static function armourMath( $text ) {
convert '-{' and '}-' to '-{' and '}-' to prevent
any unwanted markup appearing in the math image tag.
$text = strtr( $text, array( '-{' => '-{', '}-' => '}-' ) );
return $text;
}
I have to proposals:
A) (the far reaching proposal):
Replace amourMath by using the marker type nowiki
If there are arguments not to remove amourMath the alternative is
B) (remove $wgContLang):
see https://gerrit.wikimedia.org/r/#/c/87519/1
Version: master
Severity: normal