Formatting in folding spoilers

AI-generated summary

The discussion is about formatting within folding spoilers. Ads20000 asks if markdown can be displayed within spoilers, providing an example code that doesn’t render as expected. Steven replies that adding a blank line between certain formatting elements, such as after the summary and before/after the title, can resolve the issue. He provides corrected code examples to demonstrate the solution.

Could it be possible to make markdown displayable within folding spoilers (<details><summary>)?

E.g.

<details><summary>Previous snapd releases</summary>
## snapd 2.35
:gear: Snapshots ([topic](https ://forum .snapcraft .io/t/1670/11))
:gear: Parallel snap installs (topic?)
:gear: Warnings pipeline ([topic](https ://forum .snapcraft .io/t/2371))
:gear: Interface hooks ([topic](https ://forum .snapcraft .io/t/673))
</details>

Should output

snapd 2.35

:gear: Snapshots ([topic](https ://forum .snapcraft .io/t/1670/11))
:gear: Parallel snap installs (topic?)
:gear: Warnings pipeline ([topic](https ://forum .snapcraft .io/t/2371))
:gear: Interface hooks ([topic](https ://forum .snapcraft .io/t/673))

within a dropdown with a title (imagine the above is inside the dropdown):

Previous snapd releases

but instead it outputs:

Previous snapd releases ## snapd 2.35 :gear: Snapshots ([topic](https ://forum .snapcraft .io/t/1670/11)) :gear: Parallel snap installs (topic?) :gear: Warnings pipeline ([topic](https ://forum .snapcraft .io/t/2371)) :gear: Interface hooks ([topic](https ://forum .snapcraft .io/t/673))

(Would make the links proper but I’m a new user so I can’t)

You need to let one blank line between some of the formatting, especially after le summary and before/after the title

Previous snapd releases

snapd 2.35

:gear: Snapshots ([topic](https ://forum .snapcraft .io/t/1670/11))
:gear: Parallel snap installs (topic?)
:gear: Warnings pipeline ([topic](https ://forum .snapcraft .io/t/2371))
:gear: Interface hooks ([topic](https ://forum .snapcraft .io/t/673))

<details><summary>Previous snapd releases</summary>

## snapd 2.35

:gear: Snapshots ([topic](https ://forum .snapcraft .io/t/1670/11))
:gear: Parallel snap installs (topic?)
:gear: Warnings pipeline ([topic](https ://forum .snapcraft .io/t/2371))
:gear: Interface hooks ([topic](https ://forum .snapcraft .io/t/673))

</details>
5 Likes