See below:
[subbu@earth:~/work/wmf/parsoid] echo '[http://foo.bar/some.link [[Foo]] image]' | php bin/parse.php --linting > /dev/null [{"type":"wikilink-in-extlink","dsr":[0,40,26,1],"params":[]}] [subbu@earth:~/work/wmf/parsoid] echo '[http://foo.bar/some.link [[File:Foo.jpg|thumb]] image]' | php bin/parse.php --linting > /dev/null []
We need to add a new linting rule to detect the second scenario. That wikitext form is also broken since it causes the extlink to split into multiple fragments as with the wikilink-in-extlink scenario.