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

Errors using fences within tabs #614

Open
fherreazcue opened this issue Oct 18, 2024 · 2 comments
Open

Errors using fences within tabs #614

fherreazcue opened this issue Oct 18, 2024 · 2 comments

Comments

@fherreazcue
Copy link

When using a tab or group-tab (as implemented here), if a fence is used within, the content gets triplicated.
This is a minimal example to reproduce the error:

:::::::::::: tab

### tab 1

some text

### tab 2

some other text

:::::: spoiler

some text that should be hidden

::::::::::::::

::::::::::::::::::

And this is the output:

image

@froggleston
Copy link
Contributor

Hey @astroDimitrios - as the author of #571 - do you have any thoughts about this?

@astroDimitrios
Copy link
Contributor

astroDimitrios commented Oct 21, 2024

Hi both! @froggleston @fherreazcue This is a limitation of the lua, see the caveats section on 571 in the first comment. I tried several ways to get fenced blocks to work inside the tabs but because of the way some of the admonitons are rendered as multiple inline elements there was no way to capture those properly inside a tab (although I'm still a Lua novice so maybe there is a better way).

Can the content you are writing be re-written to not include the hidden text? I can try and have another look at the Lua code but can't make any promises! Also I see now the docs say you can use fenced content in tabs which probably needs changing!

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

3 participants