I am using the tool pydoc to automatically generate documentation. Given the function:
def sum(a, b):
"""Returns the sum of a and b."""
return a + b
I am curious if there is a structured way to use markdown to highlight references to function parameter labels? For example:
"""Returns the sum of 'a' and 'b'."""
"""Returns the sum of `a` and `b."""
"""Returns the sum of *a* and *b*."""
"""Returns the sum of **a** and **b**."""
Similar to this question Referencing parameters in a Python docstring which is about using Sphinx instead of pydoc.
Also note, that I am curious about referencing the labels (not the types) of the function parameters.