setMode( MathConfig::MODE_NATIVE_MML ); $this->setPurge(); } protected function doRender(): StatusValue { $presentation = $this->getChecker()->getParseTree()->renderMML(); $root = new MMLmath(); $this->setMathml( $root->encapsulateRaw( $presentation ) ); return StatusValue::newGood(); } protected function getChecker(): LocalChecker { $this->checker ??= Math::getCheckerFactory() ->newLocalChecker( $this->tex, $this->getInputType() ); return $this->checker; } }