Skip to content

Content tabs from different modules in the same markdown cross link to the first one always #193

@zuru

Description

@zuru

Not sure if this is related to mkdocs, mkdocstrings, or pytkdocs.
When using content tabs with the Tabbed extension:

markdown_extensions:
  - pymdownx.tabbed

within different module docstrings, which are rendered on the same page, their IDs are regenerated and the following content tabs link to the first content tabs when clicked.

To reproduce, add a content tab block in the docstring of two modules:

=== "Tab1"
   some content

=== "Tab2"
   some content2

and then add the modules in the same markdown:

::: module1

::: module2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions