240
110

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Qiita Markdown で折りたたみを表現する方法

Last updated at Posted at 2017-12-15

サンプル

すごく長い文章とかプログラムとか
print('Hello world!')

Markdown

<details><summary>すごく長い文章とかプログラムとか</summary>

```python
print('Hello world!')
``` 
</details>

上の例には ``` の後に不要な全角スペースが 1 つ入っているので削除してください

ハマりどころ

必ず </summary> のあとに 1 行の空行を入れないとレンダリングが崩れる。

失敗例

Screen Shot 2017-12-16 at 1.58.43.png

成功例

Screen Shot 2017-12-16 at 1.58.37.png
240
110
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
240
110

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?