loading...

How to write fold/unfold comments on GitHub

nishina555 profile image Toshiharu Nishina ・1 min read

When you describe long code such as error logs or measurement result on GitHub, you may want to create collapsed elements.

fold/unfold elements can be created by <details> tag.

For example, if you write the following source code, you will see the following description.

<details>
<summary>Title</summary>
<pre>
<code>
Detailed Information
Detailed Information
Detailed Information
</pre>
</code>
</details>

sample1

Discussion

markdown guide