<details><summary> collapsible headings</summary> under click to reveal text</details> on multiple lines

This functionality does not seem to work in Obsidian’s Markdown Preview, instead the whole text is simply visible at once if rendered on multiple lines like this:

<details>
<summary>title</summary>

some text
</details>

Instead, the text collapses as intended only if the tags are written on one line along with the text like this:

<details><summary> collapsible headings</summary> under click to reveal text</details>

We don’t support blank lines between html tags. This works

<details>
<summary>title</summary>
some text
</details>
2 Likes