Page MenuHomePhabricator

Parsoid's TOC handling needs to deal with HTML-returning components (exts, SPTs, parser funcs returning HTML) consistently
Open, MediumPublic

Description

From T355092#9483046, Parsoid needs to handle sections defined in HTML-returning components (ex: special page transclusions, parser functions returning html) just like it deals with extensions. T355092 only dealt with extensions.

This is an edge case, but needs to be handled.

Related Objects

StatusSubtypeAssignedTask
OpenReleaseNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenFeatureNone
OpenNone
OpenNone
Resolvedcscott
OpenNone
OpenNone
OpenBUG REPORTNone
OpenNone
OpenNone
OpenNone
OpenNone
Opencscott

Event Timeline

In T387582, @ihurbain raises that maybe we can have a broader discussion about what belongs in the TOC from transcluded content, rather than just mimicking the limitations of the legacy parser

Usually we do "strip kill markers" in the legacy parser, which just removes non-wikitext content entirely.

MSantos raised the priority of this task from Low to Medium.