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

@[example] macro within <details> tag is rendered outside of <details> #1458

Closed
tcNickolas opened this issue May 1, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@tcNickolas
Copy link
Member

Describe the bug
@[example] macro within <details> tag is rendered outside of <details> section, showing up even if the <details> section is collapsed.

To Reproduce

Multi-Qubit Measurements kata, exercise Multi-Qubit Measurement Outcome Probabilities II, Code-Based Solution - the code included in it is rendered outside the <details>. You can see it both in the playground and in the website.

Expected behavior

Exercise rendered within <details> tag and collapsed together with it, showing the code only when expanded.

@tcNickolas tcNickolas added bug Something isn't working needs triage labels May 1, 2024
@tcNickolas
Copy link
Member Author

After an offline discussion we concluded that this is caused by the fact that all macros are treated as top-level entries, and they split the code between them into separate HTML sections, so the <\details> tag ends up in a separate section from the opening tag. This is challenging to fix, and this is used only this once (I can't think of another occurrence of this scenario in the upcoming katas either), so we agreed to do a workaround by modifying the text to discuss the code outside of the <details> tag: #1631.

@tcNickolas tcNickolas closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant