Add a class to a table in Sphinx?
I have a table in rst, and I want to add a class to it, when compiling to HTML with Sphinx. According to the docs , adding a .. class:: directive before the table should add the class to the table, but instead it adds a definition list. The table code is: .. class:: special == == == a b c 1 2 3 == == == which results in: <dl class="class"> <dt id="special"> <em class="property">class </em><code class="descname">special</code><a class="headerlink" href="#special" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <table border="1" class="docutils"> <colgroup> <col width="33%" />