b5cf0e0b77
* Use the exactly same routines to deliver png images that are used in mathml mode. * Change the output to use mathoids png image rather than the mathml and svg output. * Locally tested on Firefox and Chrome: Depending on the mode either the SVG or the PNG path is used. Bug: T74240 Change-Id: I4b1cac92eb9a02190f316faab6621940951603d5
20 lines
377 B
PHP
20 lines
377 B
PHP
<?php
|
|
/**
|
|
* MediaWiki math extension
|
|
*
|
|
* @copyright 2002-2018 various MediaWiki contributors
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
|
|
class MathPng extends MathMathML {
|
|
public function __construct( $tex = '', array $params = [] ) {
|
|
parent::__construct( $tex, $params );
|
|
$this->setMode( 'png' );
|
|
}
|
|
|
|
public function getHtmlOutput() {
|
|
return $this->getFallbackImage();
|
|
}
|
|
|
|
}
|