class MyHTMLWriter(html4css1.Writer):
    """
  This docutils writer will use the MyHTMLTranslator class below.
  """

def __init__(self):
    html4css1.Writer.__init__(self)
self.translator_class = MyHTMLTranslator


class MyHTMLTranslator(html4css1.HTMLTranslator):

    def visit_paragraph(self, node):
        self.section_level += 1
self.body.append(self.starttag(node, 'p', CLASS='specialClass'))

def depart_paragraph(self, node):
    self.section_level -= 1
self.body.append('</p>\n')
How to get restructuredText to add a class to every html <p> tag?