Page MenuHomePhabricator

Internal links in section headings break table of contents
Closed, ResolvedPublic

Description

Author: qleah

Description:
The separate sections are still listed, but their names do not appear if their
heading is an internal link. The table of contents ends up looking like this:

1

1.1
  1.1.1
    1.1.1.1
      1.1.1.1.1
      1.1.1.1.2
1.2
  1.2.1

Version: 1.4.x
Severity: major
URL: http://meta.wikimedia.org/wiki/Wikipedians_by_favorite_writers_and_works

Details

Reference
bz1131

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 8:00 PM
bzimport set Reference to bz1131.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 179
Bug fix, look like some change in 1.4 add the need to replace also IWLINK in headings

wgInterwikiLinkHolders must be used to replace == [[w:link]] == interwiki links
in headings, patch apply to 1.4 cvs, bugs not present in 1.3, perhaps needed
for 1.5 too. Tested on 1.4 cvs with my local wiki

I'm not familiar with the way the parser works, I think it's the right way.

Attached:

jeluf wrote:

Fixed in CVS HEAD and REL1_4
Deployed to wikipedia.org