$ echo '[[File:Foo.jpg|thumb|<nowiki>a|b</nowiki>]]' | tests/parse.js --normalize=parsoid <figure class="mw-default-size" typeof="mw:Image/Thumb mw:Placeholder"> <a href="File:Foo.jpg"> <img resource="./File:Foo.jpg" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Foo.jpg/220px-Foo.jpg" data-file-width="300" data-file-height="197" data-file-type="bitmap" height="144" width="220"/> </a> <figcaption>b</figcaption> </figure>
The <nowiki> tag is not adequately protecting the vertical bar, so the caption is treated as if it were b</nowiki>.