How Can I Make The Details Tag Work?

Details Tag

The details tag i am referring to is the HTML 5 tag that looks like this:

 <details><summary>Collapse / Expand</summary>

Content goes here, something like
1. Something
2. Something 
3. Something..

</details>

My workflow requires the use of the details tag because every markdown file i have has a Q&A section and it just so happens to be easy to wrap that content inside this tag.
I am aware that it doesn’t work because Obsidian does not parse markdown text inside HTML tags, but my question is how can i make it work? If i have to learn to code and make a plugin that enables me to do so i will, but i need to know how? Thank You!

<details><summary>Collapse / Expand</summary> Content goes here, something like <br>
1. Something <br>
2. Something <br>
3. Something.. <br>
 </details>

You my good sir are a true life savior, Thank You!

Just wanted to let you know that the Admonition plugin creates details / summary elements when you create collapsible admonitions. Could be worth checking out:

Plugin Repository

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.