Currently, only list items are allowed inside of the Syntax chunk of content.
This restriction has prevented me from correctly versioning the different syntaxes using the <!-- if version [gte 6] -->
tags.
The issue was found when I tried adding more syntax examples for Arrow Functions, within the JavaScript documentation. I tried to wrap the arrow function examples in the version tag, but was given an error that said that only list items are allowed.
My suggestion would be to allow any content in the Syntax blocks, and just have the community maintain a standard format--or at least allow support for versioning.
My workaround has been to add a list item that denotes the version (in bold). You may find that edit here: https://stackoverflow.com/documentation/proposed/changes/71480