Remove <nowiki/> after a trail is separated from the link
Open, LowPublic

Description

It sometimes happens that people write in VisualEditor and write something like this by mistake:

[[Manchester]]<nowiki/>is a city

After publishing they notice that there is supposed to be a space after a link, and add the space. The VE/Parsoid output is:

[[Manchester]] <nowiki/>is a city

See the history of https://en.wikipedia.org/wiki/User:Amire80/Manchester for an example.

It would be nicer to automatically remove the <nowiki/> tag and output this:

[[Manchester]] is a city

Is it possible?

Amire80 created this task.Aug 23 2017, 10:35 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 23 2017, 10:35 AM

Not always. Parsoid only looks at edited content during serialization and if the nowiki is in the unedited portions, it may not be able to strip them out like this. However, we have a long-standing plan to remove nowikis in the content that is visible and reinsert only those that are necessary. That can ameliorate this nowiki issue in some scenarios.

Arlolra triaged this task as Low priority.Sep 8 2017, 12:01 AM
Arlolra added a subscriber: Arlolra.
Restricted Application added a subscriber: jeblad. · View Herald TranscriptSep 8 2017, 12:01 AM
ssastry moved this task from Backlog to Links on the Parsoid board.Sep 18 2017, 5:11 PM