Page MenuHomePhabricator

<math> tag does not render properly inside captions
Closed, ResolvedPublicBUG REPORT

Description

What happens?: The <math> tag does not render properly inside thumbnail captions. They take up the entire width of the screen.

Example shown is on the page for "Exponential function" on English Wikipedia.

Other information (browser name/version, screenshots, etc.): Android Wikimedia app, 2.7.50519-r-2025-01-30

Screenshot_20250213_084945_Wikipedia.jpg (2×1 px, 346 KB)

Screenshot_20250213_084934_Wikipedia.jpg (2×1 px, 328 KB)

Event Timeline

Physikerwelt subscribed.

I think nothing can be done from within the Math extension.

This likely has to do with our "image widening" logic, where we widen images to fill the width of the viewport, and it looks like this logic is being too eager to widen things it shouldn't.

Looks fixed in production.

image.png (2×5 px, 1 MB)