From 58bba16d5db7896afb5be2dd2e351afefd4a96b9 Mon Sep 17 00:00:00 2001 From: Paladox Date: Fri, 25 Aug 2023 21:43:36 +0000 Subject: [PATCH] Add support for cli only version in MathStatus Change-Id: I256c7bd1fd38ec3f48c4eaab1e8ff0b6c8aba3d4 --- src/SpecialMathStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpecialMathStatus.php b/src/SpecialMathStatus.php index 29dd2aea6..befc1c738 100644 --- a/src/SpecialMathStatus.php +++ b/src/SpecialMathStatus.php @@ -111,7 +111,7 @@ class SpecialMathStatus extends SpecialPage { // phpcs:ignore Generic.Files.LineLength.TooLong $inputSample = ' P i j = 100 d i j 6.75 r j , '; $attribs = [ 'type' => 'pmml' ]; - $renderer = new MathMathML( $inputSample, $attribs ); + $renderer = $this->rendererFactory->getRenderer( $inputSample, $attribs, MathConfig::MODE_MATHML ); $this->assertEquals( 'pmml', $renderer->getInputType(), 'Checking if MathML input is supported' ); $this->assertTrue( $renderer->render(), 'Rendering Presentation MathML sample' ); $real = $renderer->getHtmlOutput();