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.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdlrobson moved this task from Needs triage to Triaged on the Mobile board.Jul 27 2017, 8:25 PM

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

phuedx added a comment.Aug 2 2017, 7:25 PM

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.

Jdlrobson removed a project: Math.EditedAug 3 2017, 8:02 PM

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

Proof:

phuedx added a comment.Aug 4 2017, 7:13 AM

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.