anchor.diff:                  }, 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"));
  
positive.code:                     }
  
                      $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();
                          });
                      }
                  });
              };
  
  
negative.code:                                 var $comment = $('#comment-' + id);
                                  var $area = $comment.find('.comment-body').first();
                                  $area.html(data);
                                  update_math($comment);
                                  var $edits = $comment.find('.comment-edits').first();
                                  $edits.text('updated');
                              }).fail(function () {
  