Page MenuHomePhabricator

Interleaved i and a tag syntax breaks links
Closed, ResolvedPublic

Description

''[[Foo|''bar'']]'' fails to RT because this wikitext is parsed as two links by Parsoid. Might require fixup in the quote transformer possibly.


Version: unspecified
Severity: normal

Details

Reference
bz44476

Related Objects

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:21 AM
bzimport set Reference to bz44476.

We have a choice of breaking up the link or the italic text. Since both are inline, the treebuilder probably lets the one opened first win, which is the italic in this case.

I wonder why round-tripping is not handled by the auto-inserted tag detection code. Might also be the serializer ignoring auto-inserted tag information.

Arlolra set Security to None.
Arlolra removed a subscriber: MarkTraceur.
ssastry updated the task description. (Show Details)
[subbu@earth:~/work/wmf/parsoid] echo "''[[Foo|''bar'']]''" | php bin/parse.php --normalize

<p><i><a href="Foo" title="Foo"><i>bar</i></a></i></p>