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

Create a collapsible element for @example block (with output outside the select block) #2628

Open
sylvaticus opened this issue Feb 11, 2025 · 0 comments

Comments

@sylvaticus
Copy link
Contributor

Hello, I would like to obtain something similar to #2166 , but where the output is always shown and the code is in a collapsible (html details) "Show code" block.

I have tried with:

!!! details "Show code"
    ```@example
    a = [1,2,3]
    b = vcat(a,1)
    ```

\```@raw html
<details><summary>Show code 2</summary>
\```
\```@example
    c = [1,2,3]
    d = vcat(c,1)
\```
\```@raw html
</details>
\```

However in both cases also the output is rendered inside the collapsible block...

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