mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-13 17:56:59 +00:00
Merge "Fix: Set default MathStyle to inlineDisplaystyle"
This commit is contained in:
commit
9a8455cec1
|
@ -112,7 +112,7 @@ abstract class MathRenderer {
|
||||||
*/
|
*/
|
||||||
public static function getRenderer( $tex, $params = array(), $mode = 'png' ) {
|
public static function getRenderer( $tex, $params = array(), $mode = 'png' ) {
|
||||||
global $wgDefaultUserOptions, $wgMathEnableExperimentalInputFormats;
|
global $wgDefaultUserOptions, $wgMathEnableExperimentalInputFormats;
|
||||||
$mathStyle = null;
|
$mathStyle = 'inlineDisplaystyle'; // Set the default style
|
||||||
if ( isset( $params['display'] ) ) {
|
if ( isset( $params['display'] ) ) {
|
||||||
$layoutMode = $params['display'];
|
$layoutMode = $params['display'];
|
||||||
if ( $layoutMode == 'block' ) {
|
if ( $layoutMode == 'block' ) {
|
||||||
|
|
Loading…
Reference in a new issue