Ask for the MathML and SVG renders only if the input is valid
Bug: T121445 Change-Id: I18b1ef4906f98cea99dca21d5a986a79c02cc233
This commit is contained in:
parent
830fbbf071
commit
72bdb51be1
@ -96,10 +96,11 @@ class MathMathML extends MathRenderer {
|
|||||||
$displaystyle = true;
|
$displaystyle = true;
|
||||||
}
|
}
|
||||||
$rbi = new MathRestbaseInterface( $tex, $displaystyle );
|
$rbi = new MathRestbaseInterface( $tex, $displaystyle );
|
||||||
$rbi->checkTeX();
|
if ( $rbi->checkTeX() ) {
|
||||||
$this->mathml = $rbi->getMathML();
|
$this->mathml = $rbi->getMathML();
|
||||||
$this->svg = $rbi->getSvg();
|
$this->svg = $rbi->getSvg();
|
||||||
$this->svgPath = $rbi->getFullSvgUrl();
|
$this->svgPath = $rbi->getFullSvgUrl();
|
||||||
|
}
|
||||||
$this->changed = false;
|
$this->changed = false;
|
||||||
return $rbi->getSuccess();
|
return $rbi->getSuccess();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user