diff --git a/SpecialMathShowImage.php b/SpecialMathShowImage.php index 5d4671072..32f2f08b5 100644 --- a/SpecialMathShowImage.php +++ b/SpecialMathShowImage.php @@ -99,8 +99,6 @@ class SpecialMathShowImage extends SpecialPage { $output = $this->renderer->getPng(); } else { $output = $this->renderer->getSvg(); - // Strip the first style tag - $output = preg_replace( '/ style="[^"]+"/', '', $output, 1 ); } } else { // Error message in PNG not supported