From 97704a5f65dbc32ff19c24e634bec1962ac8216f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 29 Mar 2019 11:25:33 +0100 Subject: [PATCH] m.htmlsanity: don't add an useless class to section titles. --- pelican-plugins/m/htmlsanity.py | 1 - pelican-plugins/m/test/htmlsanity_content/page.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 -- 2.30.2