Page MenuHomePhabricator

Missing syntax highlighting for captions and consecutive cells that have attributes in wikitext tables
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. Enable wikitext syntax highlighting
  2. Open Wikipedia:Sandbox
  3. Edit as source
  4. Type:
{| class="wikitable"
|+ class="z" | Z
! class="a" | A !! class="b" | B
|-
! class="c" | C || class="d" | D
|-
| class="e" | E || class="f" | F
|}

Actual results

The pipe separating the attribute and content is missing its highlight for captions, or cells beginning with double marks (|| or !!) that are not the first cell on the line.

Expected results

The pipe separating attribute and content should be highlighted for captions, or cells beginning with double mark that are not the first cell on the line.

Screenshot

syntaxhighlight-missing-for-wikitable-pipe.png (161×244 px, 4 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
BryghtShadow renamed this task from Missing syntax highlighting for consecutive wikitext table cells that have attributes to Missing syntax highlighting for captions and consecutive cells that have attributes in wikitext tables.Dec 3 2022, 12:09 AM
BryghtShadow updated the task description. (Show Details)

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

[mediawiki/extensions/CodeMirror@master] fix attributes of table caption and table cell

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

Change 991643 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] fix attributes of table caption and table cell

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