Page MenuHomePhabricator

<math> tags don’t work in wikilinks in MathML mode
Closed, ResolvedPublic

Description

Same symptoms as in T4144, T7020, and T10970: A <math> tag inside of wikilink text (e. g. [[Pythagorean theorem|<math>a^2+b^2=c^2</math>]]) will produce gibberish like

'"UNIQ--postMath-00000008-QINU"'

However, this only happens in MathML mode. When rendering PNGs or LaTeX source code, it works, which I suppose would be why the above tickets are all closed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 20 2016, 6:27 PM

There is a discussion at https://en.wikipedia.org/wiki/Wikipedia:VPT#Math_inside_wikilinks_broken.3F related to this issue. T27417 and T103269 have been mentioned.

can be fixed by moving the hook from ParserBeforeTidy to ParserAfterTidy, but do we want that? CC @mobrovac

Change 279197 had a related patch set uploaded (by Physikerwelt):
Insert MathML content after tidy

https://gerrit.wikimedia.org/r/279197

Change 279197 merged by Mobrovac:
Insert MathML content after tidy

https://gerrit.wikimedia.org/r/279197

Is this fixed? It is displaying the correct formula now.

There does not seem to be a visual indicator that it is a link. You can get a change in cursor when you hover over the link, but no underlining or change in color.

@SalixAlba what page are you looking at? That makes the discussion much easier;-)