In this answer, I updated the name of the class from Testing
to SpellCheck
, but the revision history, while looking it on inline mode, shows it as TestingSpellCheck
.
It's shown correctly when using the other modes, as side-by-side:
In this answer, I updated the name of the class from Testing
to SpellCheck
, but the revision history, while looking it on inline mode, shows it as TestingSpellCheck
.
It's shown correctly when using the other modes, as side-by-side:
A hotfix is now in place for this bug on both the /posts/{id}/revisions
and /review/suggested-edits/{id}
pages. Revisions will now be highlighted correctly in code blocks:
This is a problem with highlight.js overriding the classes used to show these additions and deletions. My hotfix disables highlight.js on the revisions page.
We have plans to revisit the syntax highlighting regression on the /posts/{id}/revisions
and /review/suggested-edits/{id}
, but for now our syntax highlighting is incompatible with also showing the highlighting for additions and deletions. Although the original bug has been fixed, I'm going to mark this specific bug as status-planned until we fix the syntax highlighting regression introduced by the hotfix.
/revisions
page but also on some review pages as highlighted in the comments above. Working on a hotfix for those pages too, thanks for your patience!
Commented
Jul 5, 2021 at 17:55
/review/suggested-edits/{id}
page as well.
Commented
Jul 5, 2021 at 18:47
This happens because of the "recent" highlight.js v11 migration (specifically this feature removal). highlight.js. The library now strips unescaped HTML inside code
elements and that includes the .diff-add
/.diff-delete
span
s SE uses in diffs to indicate addition/deletion.
Until a permanent fix is out, I've created a userscript that should resolve both issues (the original bug and the "hotfix"):
Full
), so I wouldn't call that "correctly". The only mode that seems to work as expected is "Side-by-side Markdown".<span class="hljs-title class_">TestingSpellCheck</span>