Page MenuHomePhabricator

Remove <nowiki/> after a trail is separated from the link
Closed, ResolvedPublic

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?

Event Timeline

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.

@jeblad you really should modify your herald settings, your herald confused <nowiki> function with actual issues of Norwegian wikis.

Arlolra claimed this task.

Yeah, seems to have been fixed by T58381