[MediaWiki-commits] [Gerrit] MathML in default style - change (mediawiki...Math)
Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/156154 Change subject: MathML in default style .. MathML in default style In the default style MahtML 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 --- M MathMathML.php 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/54/156154/1 diff --git a/MathMathML.php b/MathMathML.php index e5ea73a..1dd8efc 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -212,9 +212,10 @@ } else { if ( $this-getMathStyle() == MW_MATHSTYLE_INLINE_DISPLAYSTYLE ) { // default preserve the (broken) layout as it was - $input = '{\\displaystyle ' . $input . '}'; - } - $out = 'type=texq=' . rawurlencode( $input ); + $out = 'type=inline-TeXq=' .rawurlencode( '{\\displaystyle ' . $input . '}' ); + } else { +$out = 'type=texq=' . rawurlencode( $input ); +} } wfDebugLog( Math, 'Get post data: ' . $out ); return $out; -- To view, visit https://gerrit.wikimedia.org/r/156154 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I87e669d5dc71d6937d4cc987d306b3c4648773c4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Physikerwelt w...@physikerwelt.de ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] MathML in default style - change (mediawiki...Math)
jenkins-bot has submitted this change and it was merged. Change subject: MathML in default style .. 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 --- M MathMathML.php 1 file changed, 4 insertions(+), 3 deletions(-) Approvals: Frédéric Wang: Looks good to me, approved jenkins-bot: Verified diff --git a/MathMathML.php b/MathMathML.php index e5ea73a..1dd8efc 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -212,9 +212,10 @@ } else { if ( $this-getMathStyle() == MW_MATHSTYLE_INLINE_DISPLAYSTYLE ) { // default preserve the (broken) layout as it was - $input = '{\\displaystyle ' . $input . '}'; - } - $out = 'type=texq=' . rawurlencode( $input ); + $out = 'type=inline-TeXq=' .rawurlencode( '{\\displaystyle ' . $input . '}' ); + } else { +$out = 'type=texq=' . rawurlencode( $input ); +} } wfDebugLog( Math, 'Get post data: ' . $out ); return $out; -- To view, visit https://gerrit.wikimedia.org/r/156154 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I87e669d5dc71d6937d4cc987d306b3c4648773c4 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Physikerwelt w...@physikerwelt.de Gerrit-Reviewer: Frédéric Wang fred.w...@free.fr Gerrit-Reviewer: TheDJ hartman.w...@gmail.com Gerrit-Reviewer: jenkins-bot ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits