Skip to content

Instantly share code, notes, and snippets.

@prjemian
Created May 7, 2019 18:39
Show Gist options
  • Save prjemian/06650476c965929d1fd487935e8ea352 to your computer and use it in GitHub Desktop.
Save prjemian/06650476c965929d1fd487935e8ea352 to your computer and use it in GitHub Desktop.
markdown details dropdown expansion

how to show a dropdown for more details in markdown:

<details>
<summary>details</summary>
<p>

```
source
```

</p>
</details>

looks like ...

details

source

@mrakitin
Copy link

Neat! If you remove the <summary> tag, it will still be printing Details:

source

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