Markdown中添加折叠段落(collapsible section)
A collapsible section containing code
Click to expand!
function whatIsLove() {
console.log('Baby Don't hurt me. Don't hurt me');
return 'No more';
}
How to structure
# A collapsible section with markdown
<details>
<summary>Click to expand!</summary>
## Heading
1. A numbered
2. list
* With some
* Sub bullets
</details>
NB: Make sure you have an empty line after the closing </summary>
tag, otherwise the markdown/code blocks won't show correctly.
NB: Make sure you have an empty line after the closing </details>
tag if you have multiple collapsible sections.
Cool! Any ideas how one could add Show `code`Still not code: ``` this is not code it should be code why can't it be code ``` |
dvdstelt commented on Sep 13, 2018 •
Sure you can. Just remember to add a full empty line before the ``` I could use some help...
|
aronisstav commentedon Sep 7, 2018