MathML in default style
In the default style MathML was rendered as inline and not as display-style which was consistent to the current behaviour of the PNG rendering. By using the 'inline-TeX' rendering type the display rendering is done independent of the rendering of the surrounding block layout. Change-Id: I87e669d5dc71d6937d4cc987d306b3c4648773c4
This commit is contained in:
parent
bfa7f5112f
commit
05c437d89a
@ -212,9 +212,10 @@ class MathMathML extends MathRenderer {
|
|||||||
} else {
|
} else {
|
||||||
if ( $this->getMathStyle() == MW_MATHSTYLE_INLINE_DISPLAYSTYLE ) {
|
if ( $this->getMathStyle() == MW_MATHSTYLE_INLINE_DISPLAYSTYLE ) {
|
||||||
// default preserve the (broken) layout as it was
|
// default preserve the (broken) layout as it was
|
||||||
$input = '{\\displaystyle ' . $input . '}';
|
$out = 'type=inline-TeX&q=' .rawurlencode( '{\\displaystyle ' . $input . '}' );
|
||||||
}
|
} else {
|
||||||
$out = 'type=tex&q=' . rawurlencode( $input );
|
$out = 'type=tex&q=' . rawurlencode( $input );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
wfDebugLog( "Math", 'Get post data: ' . $out );
|
wfDebugLog( "Math", 'Get post data: ' . $out );
|
||||||
return $out;
|
return $out;
|
||||||
|
Loading…
Reference in New Issue
Block a user