self.starttag(node, 'h%s' % h_level, '', **atts))
atts = {}
if node.hasattr('refid'):
- atts['class'] = 'toc-backref'
atts['href'] = '#' + node['refid']
if atts:
self.body.append(self.starttag({}, 'a', '', **atts))
<dd>Description of term 2</dd>
</dl>
<section id="section-title">
-<h2><a class="toc-backref" href="#id6">Section title</a></h2>
+<h2><a href="#id6">Section title</a></h2>
<p>An <em>emphasised text</em>, <strong>strong text</strong> and a <code>literal</code>. Link to
<a href="https://google.com">Google</a>, <a href="#a-heading">the heading below</a> or just an
URL as-is: <a href="https://mcss.mosra.cz/">https://mcss.mosra.cz/</a>. <a href="mailto:mosra@centrum.cz">E-mail</a>. A footnote