Minor bug: syntax highlighting is not reapplied after editing a post

  1. Create a post with some syntax highlighting:
function myFunction(x) {
    console.log(x);
    return x;
}
  1. Save the post.
  2. Edit the post - add a character or something.
  3. Save the post.

After step 4, the syntax highlighting is removed for that post. It doesn’t return until the page is refreshed.

Duplicate of
https://meta.discourse.org/t/syntax-highlighting-does-not-appear-until-page-refresh/23548

2 Likes