In this edit, VE added many nowiki tags including consecuvite ones <nowiki>...</nowiki><nowiki>...</nowiki>: consecutive tags should be merged.
[subbu@earth:~/work/wmf/parsoid] echo "<p> [[foo]]</p>" | php bin/parse.php --html2wt <nowiki> </nowiki><nowiki>[[foo]]</nowiki>