Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active January 11, 2024 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/120a791c8a8e8170d60cc72d197b5b67 to your computer and use it in GitHub Desktop.
Save Integralist/120a791c8a8e8170d60cc72d197b5b67 to your computer and use it in GitHub Desktop.
[GitHub Collapsible Drop Down Menus] #GitHub #Collapsible #DropDown #Menus

collapsible markdown?

Short version:

<details><summary>...</summary>
<p>
<!-- following line break is intentional otherwise the code block wont render + don't forget to use triple backticks! -->

``bash
# 
``

</p>
</details>

Long version:

<details><summary>CLICK ME</summary>
<p>

The line break after the paragraph is intentional.
Without it the rendering of the below code block fails.

#### yes, even hidden code blocks!

Don't forget to use triple backticks, I've used two for the purposes of rendering this code within a Markdown formatted gist...

``python
print("hello world!")
``

...only using two for sake of displaying nested code block

</p>
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment