Page MenuHomePhabricator

Headings become cursive in TOC when they contain an image
Closed, ResolvedPublic

Description

When headings contain an embedded image, they are rendered in italics in the Table of contents (TOC).

Reproduced locally using current trunk (r109643) and on labs: http://labs.wikimedia.beta.wmflabs.org/wiki/Headings_with_images

On the English wikipedia, the same input renders correctly (== all headings share the same font settings)


Version: 1.20.x
Severity: normal
URL: http://labs.wikimedia.beta.wmflabs.org/wiki/Headings_with_images

Details

Reference
bz33845

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:08 AM
bzimport set Reference to bz33845.
bzimport added a subscriber: Unknown Object (MLST).
Tbleher created this task.Jan 20 2012, 11:13 PM

This is caused by r102179 which allow <i.* tags.

Similar issue with <blockquote> since r105284 allowed <b.* tags.

Fixed in r109682

Thanks everyone for the fast response and fix! It's now working correctly on my wiki!