def visit_topic(self, node: Element) -> None:
    if ('contents' in node.get('classes', [])):
        raise nodes.SkipNode
    title = cast(nodes.title, node[0])
    self.visit_rubric(title)
    self.body.append(('%s\n' % self.escape(title.astext())))
    self.depart_rubric(title)
def visit_topic(self, node: Element) -> None:
    if ('contents' in node.get('classes', [])):
        raise nodes.SkipNode
    title = cast(nodes.title, node[0])
    self.visit_rubric(title)
    self.body.append(('%s\n' % self.escape(title.astext())))
    self.depart_rubric(title)