Page MenuHomePhabricator

Text inside the <math> tag is displayed as plain text or correctly with odd spacing on the 'descriptions' of Wikipedia pages on mobile.
Closed, DuplicatePublic


When selecting internal links to Wikipedia pages the mobile app automatically creates a popup that displays the first few lines of text of an article and an associated image if available. But if the first few lines contain the <math> tag the display does not handle it well as seen in the screenshot. This happens independent of the preferences of how math should be displayed of the user.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Jdlrobson @phuedx This would be a good case to consider when writing/testing the new summary endpoint.

Thanks for the ping, @Mholloway! I believe that the Formulae/MathML section of the spec covers this. This Page Previews client is certainly capable of rendering inline images. I'm guessing this isn't the case for the Android app.

We'll track what y'all discuss here so that it can be folded into the plain text previews part of the spec.

Yep this is covered and already fixed in the new endpoint I've been working on:


OIC. I think I may have misunderstood the nature of the bug. The the Formulae/MathML section of the spec does indeed cover this as <math> tags will be stripped.