Steps to replicate the issue (include links if applicable):
What happens?:
The opening (inner) syntaxhighlight tag is displayed as intended, but the inner closing tag is taken as the end of the whole block, resulting in the closing </syntaxhighlight> of the outer block, being displayed outside of the syntaxhighlight formatted content, with no formatting applied to it.
What should have happened instead?:
The inner syntaxhighlight closing tag should have been displayed within the context of the (outer) syntaxhighlight block.
Other information (browser name/version, screenshots, etc.):
Firefox 114.0a1 (2023-04-14) (32-bit) .