Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested tabber breaks due to shared tab name #207

Open
Krazete opened this issue Jan 13, 2025 · 0 comments
Open

Nested tabber breaks due to shared tab name #207

Krazete opened this issue Jan 13, 2025 · 0 comments

Comments

@Krazete
Copy link

Krazete commented Jan 13, 2025

Creating a nested tabber like in the README will produce a broken tabber if the parent tabber and the first child tabber have a tab name in common.

The parent tabber's ID is 0.
<tabber>
  Default={{#tag:tabber|
    Default=This child tabber's ID is 0 too.
    {{!}}-{{!}}
    Not Default=A
  }}
  |-|
  Not Default={{#tag:tabber|
    Default=This child tabber's ID is 1.
    {{!}}-{{!}}
    Not Default=B
  }}
</tabber>

I assume it has something to do with the parent and the first child both having an ID of 0.

I can avoid the bug above if I replace the parent <tabber> with the {{#tag:tabber}} format.

The parent tabber's ID is 2.
{{#tag:tabber|
  Default={{#tag:tabber|
    Default=This child tabber's ID is 0.
    {{!}}-{{!}}
    Not Default=C
  }}
  {{!}}-{{!}}
  Not Default={{#tag:tabber|
    Default=This child tabber's ID is 1.
    {{!}}-{{!}}
    Not Default=D
  }}
}}

But the parent tabber's ID is no longer 0. I guess the parent is processed last now.
A lot of links on our wiki rely on the parent tab anchors having the same -0 ending, so this isn't great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant