Function
docutils.parsers.rst.roles.register_generic_role

Signature

register_generic_role(canonical_name, node_class)

Documentation String

For roles which simply wrap a given node_class around the text.