title: Jekyll, modify the way some html tags are rendered
body: <p>I would like to modify the way some html tags are rendered on jekyll. What I need is to add some css classes automatically (in this case the ".table" class to the table html tag).</p>
  
  <p>I'm using the redcarpet markdown processor. I suppose I need to write a plugin that extends the renderer but I can't find any good example...</p>
  
  <p>I came up with this but it's just a copy/paste job and it doesn't work...</p>
  
  <pre><code>require 'redcarpet'
  
  class BootstrapTables &lt; Redcarpet::Render::HTML
    def table(header, body)
      "\n&lt;table class='table'&gt;&lt;thead&gt;\n#{ header }&lt;/thead&gt;&lt;tbody&gt;\n#{ body }&lt;/tbody&gt;&lt;/table&gt;\n"
    end
  end
  </code></pre>
  
  <p>Someone can help?</p>