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

Description

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.

Screenshot_2017-07-19-13-37-44.png (1×720 px, 81 KB)

Event Timeline

@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:

Proof:

Screen Shot 2017-08-03 at 1.02.11 PM.png (180×831 px, 51 KB)

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.