The following transcript demonstrates the issue:
```
$ cat /tmp/xwt
{|
| a || {{{ || b
|-
| c || }}} || d
|}emplate:Pipe renders incorrectly in Parsoid (See [[ https://en.wikipedia.org/wiki/Template:Pipe?useparsoid=0 | legacy ]] vs [[ https://en.wikipedia.org/wiki/Template:Pipe?useparsoid=1 | Parsoid ]] )
$ php bin/parse.php --trace peg </tmp/xwt 148 ↵
0-[peg] | ----> [{"type":"TagTk","name":"table","attribs":[],"dataParsoid":{"tsr":[0,2]}}]
0-[peg] | ----> [{"type":"NlTk","dataParsoid":{"tsr":[2,3]}},{"type":"TagTk","name":"td","attribs":[],"dataParsoid":{"tsr":[3,4]}}," a ",{"type":"TagTk","name":"td","attribs":[],"dataParsoid":{"tsr":[7,9],"stx":"row"}}," ",{"type":"SelfclosingTagTk","name":"templatearg","attribs":[{"k":"","v":"","srcOffsets":[14,14,14,14]},{"k":"","v":[],"srcOffsets":[15,15,15,15]},{"k":"","v":[" b",{"type":"NlTk","dataParsoid":{"tsr":[18,19]}}],"srcOffsets":[16,16,16,19]},{"k":"","v":["-",{"type":"NlTk","dataParsoid":{"tsr":[21,22]}}],"srcOffsets":[20,20,20,22]},{"k":"","v":" c ","srcOffsets":[23,23,23,26]},{"k":"","v":[],"srcOffsets":[27,27,27,27]},{"k":"","v":[" "],"srcOffsets":[28,28,28,29]}],"dataParsoid":{"tsr":[10,32],"src":"{{{ || b\n|-\n| c || }}}"}}," ",{"type":"TagTk","name":"td","attribs":[],"dataParsoid":{"tsr":[33,35],"stx":"row"}}," d"]
0-[peg] | ----> [{"type":"NlTk","dataParsoid":{"tsr":[37,38]}},{"type":"EndTagTk","name":"table","attribs":[],"dataParsoid":{"tsr":[38,40]}}]
0-[peg] | ----> [{"type":"NlTk","dataParsoid":{"tsr":[40,41]}}]
0-[peg] | ----> [{"type":"NlTk","dataParsoid":{"tsr":[41,42]}}]
<table data-parsoid='{"dsr":[0,40,2,2]}'>
<tbody data-parsoid='{"dsr":[3,38,0,0]}'><tr data-parsoid='{"autoInsertedStart":true,"dsr":[3,37,0,0]}'><td data-parsoid='{"dsr":[3,7,1,0,1,1]}'>a</td><td data-parsoid='{"stx":"row","dsr":[7,33,2,0,1,1]}'><span about="#mwt1" typeof="mw:Param" data-parsoid='{"pi":[[{"k":"1"},{"k":"2"},{"k":"3"},{"k":"4"},{"k":"5"},{"k":"6"}]],"dsr":[10,32,null,null]}' data-mw='{"parts":[{"templatearg":{"target":{"wt":""},"params":{"1":{"wt":""},"2":{"wt":" b\n"},"3":{"wt":"-\n"},"4":{"wt":" c "},"5":{"wt":""},"6":{"wt":" "}},"i":0}}]}'></span></td><td data-parsoid='{"stx":"row","dsr":[33,37,2,0,1,0]}'>d</td></tr>
</tbody></table>
```My initial hypothesis was that this was the PEG tokenizer incorrectly tokenizing "{{{ .. }}}" across newlines and a bunch of code tags and entities, but that doesn't seem to be the case.
This is a reduced test case of a diff that was first seenFirst encountered during visual diffs on pagotwiki & gotpawiki on Template:Pipe on those wikis. This diff is also seen on enwiki's Template:Pipe
The PEG tokenizer is incorrectly tokenizing the "{{{...}}}" as a template arg token across newlines.