Skip to content

Instantly share code, notes, and snippets.

@citrusui
Last active July 3, 2024 07:46
Show Gist options
  • Save citrusui/07978f14b11adada364ff901e27c7f61 to your computer and use it in GitHub Desktop.
Save citrusui/07978f14b11adada364ff901e27c7f61 to your computer and use it in GitHub Desktop.
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
</details>

Want to ruin the surprise?
Well, you asked for it!

<details open>
<summary>Want to ruin the surprise?</summary>
<br>
Well, you asked for it!
</details>
@jeremy0x
Copy link

Nice. Thank you! @cosmiccoincidence

@Ali-Script
Copy link

can style it? like color

@gachikuku
Copy link

gachikuku commented May 15, 2024

why not

something like this

${{\color{Goldenrod}\Huge{\textsf{ Hi\ there\ }}}}$

Looks kinda neat imo.

why not 

<details>
<summary>

### [something like this](https://gist.github.com/citrusui/07978f14b11adada364ff901e27c7f61)
${{\color{Goldenrod}\Huge{\textsf{  Hi\ there\ \}}}}\$

</summary>

*Looks kinda neat imo.*

</details>

@kyhtwolffun
Copy link

kyhtwolffun commented Jul 3, 2024

Alerts outside of dropdown works fine

Important

Important note

But this does not work

[!IMPORTANT]
Another important note

https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment