Page MenuHomePhabricator

Media Viewer's image-details does not handle <math> markup in truncated-text
Open, Needs TriagePublic

Description

For example, when viewing this page on a mobile device:
https://en.m.wikipedia.org/wiki/User:Beland/math_bug
At first, <math>\sqrt{2}</math> in the image caption is rendered correctly as something like √2. Tapping on the image loads it for full-screen viewing, I think using the Media Viewer extension? The formula doesn't render properly, and is displayed as "2 {\displaystyle {\sqrt {2}}}".

Event Timeline

Aklapper renamed this task from Media Viewer does not handle <math> markup to Media Viewer's image-details does not handle <math> markup in truncated-text.Sep 22 2020, 6:01 PM

The page https://en.m.wikipedia.org/wiki/User:Beland/math_bug renders correctly when viewed in a desktop browser. It seems to render fine on an android phone, in chrome and Samsung internet browser.

Image description pages like https://commons.wikimedia.org/wiki/File:Peano_intersection.png#/media/File:Peano_intersection.png do not render correctly in Firefox/Chrome running on windows 10, the equation is not displayed.