Hi sciurius,
yes, you are right. I’m sorry for not retesting the stuff, I used the code from ipra and just tested the folding…
I found out that for rendering markdown code inside the <summary>
and inside the folded text an empty line before the markdown code is needed. The markdown renderer inside this forum here shows the exact same behavior.
The following example shows how to render markdown inside the summary and the content of a folded section. The only issue that it shows, is that the folding arrow is shown in an empty line before the summary headline.
Code
<details markdown='1'><summary>
### Summary of folded text
</summary>
Test List
* first item
* second item
#### Test subchapter 1
Test numbered list
1. Numbered list item 1
2. Numbered list item 2
#### Test subchapter 2
Text
Extended information which is folded by default.
</details>
Rendered result
Summary of folded text
Test List
- first item
- second item
Test subchapter 1
Test numbered list
- Numbered list item 1
- Numbered list item 2
Test subchapter 2
Text
Extended information which is folded by default.