Parameters for Python classes, methods, and functions have crappy formatting. They use the <cite> HTML tag, which most browsers display as italicized text by default. Unfortunately parameters do not have a useful link target. As a result, <cite> is doubtful to be semantically correct as it cannot be easily determined what is being cited.
Ideally the parameters would be styled to appear as code or in a monospaced font face without italicization to relieve visual dissonance.
The simple fix would be to add cite to this selector:
Reference: https://github.com/Pylons/webob/pull/335#discussion_r134369820
Parameters for Python classes, methods, and functions have crappy formatting. They use the
<cite>
HTML tag, which most browsers display as italicized text by default. Unfortunately parameters do not have a useful link target. As a result,<cite>
is doubtful to be semantically correct as it cannot be easily determined what is being cited.Ideally the parameters would be styled to appear as code or in a monospaced font face without italicization to relieve visual dissonance.
The simple fix would be to add
cite
to this selector:The following are examples for reference only.
reST source:
Yields:
When there are useful linkable targets, it looks fine. Using Pyramid's docs as an example...
reST source:
renders as:
reST source using
autodoc
:renders as: