mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Style refactor limits parsing
Change-Id: Ia1040a0e1c5283d334bea47ec35529902c4eb435
This commit is contained in:
parent
4d6a472040
commit
88b3575e74
|
@ -945,13 +945,14 @@ class BaseParsing {
|
|||
}
|
||||
|
||||
public static function limits( $node, $passedArgs, $operatorContent, $name, $smth = null ) {
|
||||
$argsOp = [ "form" => "prefix" ];
|
||||
if ( $operatorContent != null && array_key_exists( "styleargs", $operatorContent ) ) {
|
||||
if ( $operatorContent["styleargs"]["displaystyle"] === "false" ) {
|
||||
$argsOp = [ "movablelimits" => "true" ];
|
||||
$argsOp = [ 'form' => 'prefix' ];
|
||||
if ( isset( $operatorContent['styleargs'] ) ) {
|
||||
$displaystyle = $operatorContent['styleargs']['displaystyle'] ?? 'true';
|
||||
if ( $displaystyle === 'false' ) {
|
||||
$argsOp['movablelimits'] = 'true';
|
||||
}
|
||||
if ( $node->containsFunc( "\\nolimits" ) ) {
|
||||
$argsOp = [ "movablelimits" => "false" ];
|
||||
if ( $node->containsFunc( '\\nolimits' ) ) {
|
||||
$argsOp['movablelimits'] = 'false';
|
||||
}
|
||||
}
|
||||
$mrow = new MMLmrow( TexClass::ORD, [] );
|
||||
|
|
Loading…
Reference in a new issue