8

It seems the visual highlight of revision/code differences in source fences is currently broken for some posts in the suggested edits review queue.

  • Example 1. In this post. The 3rd line of code was edited but there's no visual highlight.

    enter image description here

  • Example 2. In this post. The code line was changed but there's no highlight, notably the source fence is one single line.

    enter image description here

  • Example 3.1. In this post. There seem to be two inconsistencies, the difference highlight is shown when reviewing the item in the review queue.

    enter image description here

  • Example 3.2. but if you review the edit by clicking the edit link directly on the post the diff highlight is not shown.

    enter image description here

I think the highlight difference is essential for reviewers, I was left starring at the source fences trying to find the differences in code when reviewing these items.

3
3

The hotfix from my answer on Meta Stack Overflow has been expanded to cover the /review/suggested-edits/{id} page. Highlight.js was overriding the styles used for showing additions and deletions. My hotfix turns off Highlight.js on these revision pages so that additions and deletions are shown correctly.

Notably, the hotfix has a regression of turning off syntax highlighting on this page. See my Meta SO answer for more details.

2
  • 1
    Since you're looking into it maybe this is related?!
    – bad_coder
    Jul 5 at 18:36
  • 3
    @bad_coder The change that broke this was introduced in the past couple of weeks, unfortunately this isn't related so no easy win there 😓 That bug is approaching the top of our bug backlog though, so stay tuned 🙂
    – Kyle Pollard StaffMod
    Jul 5 at 18:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .