Page MenuHomePhabricator

Parsoid tripped up by extensions that process wikitext
Closed, ResolvedPublic

Description

Parsoid currently relies on the api=parse Mediawiki endpoint to handle extensions. This works well in most scenarios. However, if the extension is wikitext-based (ex: <gallery>), then, it can be a source of some headaches. Specifically, <ref>s in those extensions become opaque to Parsoid since they are being processed by M/W Cite.php rather than Parsoid's native Cite handler.

This shows up as bug reports like T74865, T62340, and T93580#1589644 (among others that are either unreported or will be reported).

The obvious fix is to register Parsoid-native extension handlers for those extensions that process wikitext.

There is no obvious generic fix for these. This has to be handled on a case-by-case basis for all such extensions. Specifically, writing a native <gallery> extension has been on the cards for Parsoid for a while. Something to tackle sooner than later.

I am going to leave this high-level ticket open as a tracker ticket for all such extensions.

Event Timeline

ssastry raised the priority of this task from to High.
ssastry updated the task description. (Show Details)
ssastry added a subscriber: ssastry.
ssastry lowered the priority of this task from High to Medium.Aug 31 2015, 5:10 PM
ssastry set Security to None.
LGoto raised the priority of this task from Medium to High.Jun 25 2020, 6:12 PM
ssastry claimed this task.

I am going to close this task since it is not very actionable as it stands. The subtasks that target specific extensions that need Parsoid support are actionable, and there is no benefit from this tracker task wrt project planning.