diff --git a/MathMathML.php b/MathMathML.php index 0b39cfe..b7afae3 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -349,7 +349,7 @@ class MathMathML extends MathRenderer { $style .= " ".$styles[1]; // merge styles if ( $this->getMathStyle() === MW_MATHSTYLE_DISPLAY ) { // TODO: Improve style cleaning - $style = preg_replace( '/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;|position:\s*absolute;\s*left:\s*0px;/', '', $style ); + $style = preg_replace( '/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;|position:\s*absolute;\s*left:\s*0px;/g', '', $style ); } } // TODO: Figure out if there is a way to construct