Page MenuHomePhabricator

Incorrectly highlighted section header with special characters
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
When section headers contain standalone special characters <, [, { and ~, the ending = will not be highlighted. By contrast, the ending characters in the next line will be mistakenly highlighted instead.

What should have happened instead?:
The ending = should be highlighted as a valid wikitext syntax, and the next line should not be involved.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
This bug is not browser-dependent.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 798988 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/extensions/CodeMirror@master] Fix special characters in section headers

https://gerrit.wikimedia.org/r/798988

Change 798988 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] Fix special characters in section headers

https://gerrit.wikimedia.org/r/798988