Collapsing content on OpenMRS Talk

I was looking for a way to collapse code blocks within a Talk post and discovered this little pearl that works within Discourse posts:

<summary>Hint to show in post</summary>

Long block of code
goes here

is rendered like this:

Hint to show in post
Long block of code
goes here

TIP: The empty line after the <summary/> element is needed to properly render the code block. Posts are limited to ~32K, so it’s still best practice to put large chunks of code into a website like and link to it.


Thanks @burke for sharing this!!

Woow , thanks @burke. its a great tool
It works