.. role:: custom
.. role:: my-sub (sub)
   :class: my-sub
.. role:: my-sup (sup)

This text has a `custom`:custom: inline role, a `custom
superscript`:my-sup: role, and a `custom subscript`:my-sub: role.
