Skip to content

feature: Support footnotes in docstring parameters section #273

@dhirschfeld

Description

@dhirschfeld

Is your feature request related to a problem? Please describe.

It would be good if I could use a footnote to link to a References section.

When I try the below:

        Parameters
        ----------
        timeout : float | httpx.Timeout, default 5.0
            Request a default timeout in seconds or provide a
            `httpx.Timeout` instance for finer-grained control[^1].

        References
        ----------
        [^1]: https://www.python-httpx.org/advanced/timeouts/

The back-link renders correctly in the References section but there is no link shown in the timeout section where the footnote [^1] appears to be ignored and rendered as plain text:

Image

Describe the solution you'd like

The footnote should render as a superscript number and should be a link to the corresponding [^1]: in the References section.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions