Several {{Collapse top}} templates render incorrectly in Meta wiki.
When editing via Visual Editor, I used several collapse templates to wrap JSON code on a page in Meta wiki. Even though in editing mode, the preview didn't show any errors, but after publishing the pages, I saw all collapsible items in a nested state. The specific revision that shows this:
https://meta.wikimedia.org/w/index.php?title=Contraband&diff=19197571&oldid=19195077
See below screenshot of published changes that shows a leftover markup |} that I didn't see in the editing mode.
See screenshot below that shows all nested collapsible items.
The same content rendered well on MediaWiki.