Page MenuHomePhabricator

syntaxhighlight with lang=wikitext incorrectly colors a text that includes a wikilink with a colon
Open, Needs TriagePublic

Description

When using the new "wikitext" language tag on a text that includes a wikilink with a colon, the color is incorrectly applied to the text. The part up until the colon is in blue, while the text after is in green.

Expected: the complete text inside the wikilink is green.

Steps to reproduce:
<syntaxhighlight lang="wikitext">
[[Homicide: Life on the Street]]
</syntaxhighlight>

Result:

Screen Shot 2024-09-26 at 9.09.33 PM.png (438×1 px, 161 KB)