chiark / gitweb /
m.htmlsanity: don't add an useless class to section titles.
authorVladimír Vondruš <mosra@centrum.cz>
Fri, 29 Mar 2019 10:25:33 +0000 (11:25 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Fri, 29 Mar 2019 12:44:31 +0000 (13:44 +0100)
pelican-plugins/m/htmlsanity.py
pelican-plugins/m/test/htmlsanity_content/page.html

index df73ebc5cf13301cf7f45879dd6e0e08fee2e1e9..38deabd506d309f758605425c45cc0f60556320e 100644 (file)
@@ -565,7 +565,6 @@ class SaneHtmlTranslator(HTMLTranslator):
                   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))
index 3a7dc574dc053b4ef962e6a6466abeb8dfcf4137..cb60caf4f201a9e42552ae14b187e390cf93797a 100644 (file)
@@ -74,7 +74,7 @@ content<br />
 <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&#64;centrum.cz">E-mail</a>. A footnote