Page MenuHomePhabricator

<math>\sin \cos^2</math> not rendered as superscript
Closed, ResolvedPublic

Description

A possibly related bug is that the "2" in <math>\sin \cos^2</math> or <math>\deg \cos^2</math> is not rendered as a superscript (i.e. I would expect to see "sin⁡ cos²" but it actually renders as "sin⁡ cos⁡2"). Again, "Invalid markup: Incorrect number of children for <msup/> tag" is printed to the Firefox console. Interestingly, <math>\sin^2 \cos^2</math> is rendered correctly as "sin⁡² cos²".

Details

Related Changes in Gerrit:

Event Timeline

<math>\sin^2 \cos^2</math>

is probably cached

The rest is probably a regression from my recent "fix" to the apply logic

Change #1119458 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Fix rendering of \sin \cos^2

https://gerrit.wikimedia.org/r/1119458

Physikerwelt moved this task from Inbox to Code Review on the Math board.

Change #1119458 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix rendering of \sin \cos^2

https://gerrit.wikimedia.org/r/1119458