(Where the word is the actual working part of the element).
Probably not a real bug, since it is triggered by a user mistake (who should remove the brackets), but since it's easily reproduceable, here are the steps:
take any <nowiki>[[link]]</nowiki> created like this (by ignoring the markup warning).
VEdit the page and use the linking tool on the word inside the brackets.
Save, you now have [[[[link]]]], and of course the nowiki tags are gone.
https://www.mediawiki.org/w/index.php?title=User:Elitre_(WMF)/SandboxVE&diff=prev&oldid=794483
https://www.mediawiki.org/w/index.php?title=User%3AFram%2FSandbox&diff=794473&oldid=794472
Just interested in understanding whether VE wants or can do something about it.
(Note that it is absolutely possible to get the same result with the traditional editor as well, https://sl.wikipedia.org/w/index.php?title=Klerofa%C5%A1izem&diff=next&oldid=4101482 ).
Version: unspecified
Severity: normal