Page MenuHomePhabricator

Nested <syntaxhighlight> within lang=wikitext block causes terminating </syntaxhighlight> tag to be placed outside the formated block generated.
Closed, InvalidPublicBUG REPORT

Description

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) .

Event Timeline

ShakespeareFan00 renamed this task from Nested Syntax highlight in Wikitext lexer causes terminating </syntaxhighlight> tag to be placed outside the formated block generated. to Nested <syntaxhighlight> within lang=wikitext block causes terminating </syntaxhighlight> tag to be placed outside the formated block generated..Apr 15 2023, 7:38 AM

Use {{#tag:syntaxhighlight}} mentioned here.

Closed as invalid. An acceptable work-around exists :)