marked.setOptions({
  langPrefix: 'language-',
  highlight: function(code, lang) {
    if (!Prism.languages[lang]) {
      return code;
    }
    return Prism.highlight(code, Prism.languages[lang]);
  },
  renderer: (function(){
    var renderMin = new marked.Renderer();
    renderMin.table = function(header, body) {
      return '<table class=\'table\'>\n'
      + '<thead>\n'
      + header
      + '</thead>\n'
      + '<tbody>\n'
      + body
      + '</tbody>\n'
      + '</table>\n';
    };
    return renderMin;
  })()
});

var md = document.getElementById('md');
md.innerHTML = marked(md.getAttribute('data-md'));

@@ -201,424 +201,280 @@
  %7D,%0A
-  renderer: (function()%7B%0A    var renderMin = new marked.Renderer();%0A    renderMin.table = function(header, body) %7B%0A      return '%3Ctable class=%5C'table%5C'%3E%5Cn'%0A      + '%3Cthead%3E%5Cn'%0A      + header%0A      + '%3C/thead%3E%5Cn'%0A      + '%3Ctbody%3E%5Cn'%0A      + body%0A      + '%3C/tbody%3E%5Cn'%0A      + '%3C/table%3E%5Cn';%0A    %7D;%0A    return renderMin;%0A  %7D)()%0A%7D);%0A%0Avar md = document.getElementById('md');%0Amd.innerHTML = marked(md.getAttribute('data-md')
+%7D);%0A%0Avar md = document.getElementById('md');%0Amd.innerHTML = marked(md.getAttribute('data-md'));%0A%0A(function() %7B%0A  var tables = document.querySelectorAll('table');%0A  for (var i = 0, tableElement ; tableElement = tables%5Bi++%5D ; ) %7B%0A    tableElement.className = 'table';%0A  %7D%0A%7D)(
 );%0A

Move table class to postprocessing step