From 5168389a9a50b937ae59706f15fdc4736050481b 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 (cherry picked from commit 58bba16d5db7896afb5be2dd2e351afefd4a96b9) --- src/SpecialMathStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpecialMathStatus.php b/src/SpecialMathStatus.php index fb49555d3..1dfc23ad7 100644 --- a/src/SpecialMathStatus.php +++ b/src/SpecialMathStatus.php @@ -116,7 +116,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();