From: Vladimír Vondruš Date: Fri, 29 Mar 2019 10:25:33 +0000 (+0100) Subject: m.htmlsanity: don't add an useless class to section titles. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=97704a5f65dbc32ff19c24e634bec1962ac8216f;p=blog.git m.htmlsanity: don't add an useless class to section titles. --- diff --git a/pelican-plugins/m/htmlsanity.py b/pelican-plugins/m/htmlsanity.py index df73ebc5..38deabd5 100644 --- a/pelican-plugins/m/htmlsanity.py +++ b/pelican-plugins/m/htmlsanity.py @@ -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)) diff --git a/pelican-plugins/m/test/htmlsanity_content/page.html b/pelican-plugins/m/test/htmlsanity_content/page.html index 3a7dc574..cb60caf4 100644 --- a/pelican-plugins/m/test/htmlsanity_content/page.html +++ b/pelican-plugins/m/test/htmlsanity_content/page.html @@ -74,7 +74,7 @@ content
Description of term 2
-

Section title

+

Section title

An emphasised text, strong text and a literal. Link to Google, the heading below or just an URL as-is: https://mcss.mosra.cz/. E-mail. A footnote