Merge "Ask for the MathML and SVG renders only if the input is valid"
This commit is contained in:
commit
c900b7bd25
|
@ -96,10 +96,11 @@ class MathMathML extends MathRenderer {
|
|||
$displaystyle = true;
|
||||
}
|
||||
$rbi = new MathRestbaseInterface( $tex, $displaystyle );
|
||||
$rbi->checkTeX();
|
||||
$this->mathml = $rbi->getMathML();
|
||||
$this->svg = $rbi->getSvg();
|
||||
$this->svgPath = $rbi->getFullSvgUrl();
|
||||
if ( $rbi->checkTeX() ) {
|
||||
$this->mathml = $rbi->getMathML();
|
||||
$this->svg = $rbi->getSvg();
|
||||
$this->svgPath = $rbi->getFullSvgUrl();
|
||||
}
|
||||
$this->changed = false;
|
||||
return $rbi->getSuccess();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue