def run(self):
# ‘BaseAdmonition’ checks whether ‘node_class’ is ‘nodes.admonition’,
# and uses arguments[0] as the title in that case (in other cases, the
# title is unset, and it is instead set in the HTML visitor).
assert not self.arguments # Arguments have been parsed as content
self.arguments = ['Example']
self.options['classes'] = ['admonition', 'note']
return super().run()
评论列表
文章目录