Page MenuHomePhabricator

Nested wiki link edge case [[foo|[[foo]]]] not handled correctly
Open, LowPublic

Description

Test case:

echo '[[foo|[[foo]]]]' | node parse --wt2wt
[[foo|<nowiki/>]][[foo]]

The PHP parser only recognizes the inner link and displays the outer link as plain text. We parse both links, which results in the outer link being broken up in the DOM. We seem to detect this ("misnested":true in data-parsoid), but don't use this info to convert the outer link to text.


Version: unspecified
Severity: normal

Details

Reference
bz60177

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:02 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz60177.
Arlolra set Security to None.
ssastry lowered the priority of this task from Medium to Low.May 21 2020, 2:55 PM

Some edge case that is not going to affect very many pages. So, lowering priority.