anchor.diff:                      }
   
                       $comment.find('.comment-edit-text').text(' ' + edit_text + ' ');
  -                    if ('MathJax' in window) {
  -                        var $body = $comment.find('.comment-body');
  -                        MathJax.Hub.Queue(['Typeset', MathJax.Hub, $body[0]], function() {
  -                            $body.find('.tex-image').hide();
  -                            $body.find('.tex-text').show();
  -                        });
  -                    }
  +                    update_math($comment);
                   });
               };
   
  
positive.code:                     });
                  },
                  variant: 'featherlight-edit'
              });
  
              $('.comments').find('a.history-link').featherlight({
                  afterOpen: function () {
                      if ('MathJax' in window)
                          MathJax.Hub.Queue(['Typeset', MathJax.Hub, $('.featherlight-content').get(0)]);
                  }
              });
  
              var $root = $('html, body');
  
negative.code:                 }, 500);
              };
  
              function update_math($comment) {
                  if ('MathJax' in window) {
                      var $body = $comment.find('.comment-body');
                      MathJax.Hub.Queue(['Typeset', MathJax.Hub, $body[0]], function () {
                          $body.find('.tex-image').hide();
                          $body.find('.tex-text').show();
                      });
                  }
              }
  
              window.show_revision = function(comment_id, offset) {
                  var $comment = $("#comment-" + comment_id);
                  var cur_revision = parseInt($comment.attr("data-revision"));
  