Documenter.jl icon indicating copy to clipboard operation
Documenter.jl copied to clipboard

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

Open sylvaticus opened this issue 10 months ago • 0 comments

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...

sylvaticus avatar Feb 11 '25 09:02 sylvaticus