# Description

Hovercard ignores math formulae, see red circles in screenshot

Testcase: https://de.wikipedia.org/wiki/Helling#Der_Helgenbock and hover over "Tangens".

### Event Timeline

Raymond created this task.May 20 2015, 4:11 PM
Raymond raised the priority of this task from to Needs Triage.
Raymond updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. May 20 2015, 4:11 PM
Prtksxna updated the task description. (Show Details)Jun 5 2015, 5:04 AM
Prtksxna set Security to None.

TextExtracts removes these as they are images.

Jdlrobson closed this task as Declined.Sep 18 2015, 6:45 PM

As @Prtksxna points out this is an image. We could take the value of the text in the alt tag although this would have more serious impacts on other text extracts where the image is not a crucial part of the information. Could the article be rewritten to us one of the many maths extensions we have?

Se4598 added a subscriber: Se4598.Sep 20 2015, 12:28 AM

As @Prtksxna points out this is an image. We could take the value of the text in the alt tag although this would have more serious impacts on other text extracts where the image is not a crucial part of the information. Could the article be rewritten to us one of the many maths extensions we have?

I don't understand you. That aren't real images, but formulas from the math-extension, only rendered in the article output as images.

Jdlrobson reopened this task as Open.Sep 21 2015, 6:58 PM

So the maths formula are wrapped in $tags for example [itex]\cot x$ but they resolve to images.

We could print "$\cot x$" or "\cot x" but this wouldn't make sense without the image. What would you propose happens in this situation?

For Hovercards we may want to consider surfacing HTML in hovercard descriptions and rendering these images but we don't want to render all images - we'd have to be clever and only show inline images which I'm not sure the current parser will support.

Note: [itex] formulars on pages doesn't have to be rendered as a plain png, Extension:Math also supports MathML (browser rendering) with SVG/PNG-fallback or (removed) via MathJax (JS-library) and other modes by itself.
Extension:Math even has a user setting for that on wikimedia-wikis (I won't judge if that makes sense in context for hovercards).

How to bring that support to TextExtracts/Hovercard is another thing to think about.

Jdlrobson removed Jdlrobson as the assignee of this task.Sep 21 2015, 7:58 PM
Jdlrobson triaged this task as Low priority.
Jdlrobson raised the priority of this task from Low to Medium.
dr0ptp4kt lowered the priority of this task from Medium to Low.Aug 4 2016, 5:12 PM
dr0ptp4kt moved this task from Incoming to Needs Prioritization on the Readers-Web-Backlog board.

We need to make a decision about whether to render HTML or not to solve this.