Skip to content

Combination of admonition, link, parameter type breaks long_description. #68

Closed

Description

@songololo

Parsing the following doesn't work (long_description fails).

def mock_function(boo):
    """

    :::note
    Admonition with a [link](https://google.com).
    :::

    Parameters
    ----------
    boo: int
        baa

    """
    pass

Interestingly, removal of any of the following causes things to start working again:

  • link inside the admonition
  • admonition block wrappers - i.e. :::
  • parameter type information - i.e. int

Activity

  1. rr- commented on Nov 7, 2026

    @rr-
    Owner

    Thanks for narrowing down the three triggers, which made this easy to check. The example now parses as Numpydoc with boo: int read as a param, and removing the link, the ::: wrappers or the type no longer changes the result. Since #174 the whole first paragraph is the short description, so the admonition lands in short_description and long_description is None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions