# 展開可能

展開可能なブロックは、そうでなければ長くなってしまう段落を要約するのに役立ちます。手順ガイドやFAQにも最適です。

既定では、展開可能なブロックは公開済みのドキュメントサイトでは折りたたまれた状態になります。展開可能なブロックを既定で展開状態にしたい場合は、ブロックの **オプションメニュー** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/ce0e0a07ded643c4e219bbfe214239e291d0c7a1" alt=""></picture> を選択し、 **既定で展開**.

### 例

<details open>

<summary>ステップ 1: 展開可能なブロックを使い始める</summary>

展開可能なブロックを追加するには、 `/` 空のブロックで押すか、 `+` エディタの左側にある **展開可能**.

をクリックし、 **既定で展開** ブロックの **オプションメニュー** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/ce0e0a07ded643c4e219bbfe214239e291d0c7a1" alt=""></picture> で既定で展開に設定できます — このブロックのように。

</details>

<details>

<summary>ステップ 2: ブロックにコンテンツを追加する</summary>

展開可能なブロックを挿入したら、リストやコードブロックを含むコンテンツを追加できます。

</details>

## Markdown での表現

{% code overflow="wrap" %}

```markdown
# 展開可能なブロック

<details open>

<summary>ここに展開可能なタイトルを追加</summary>

ここに展開可能な本文を追加してください。この展開可能ブロックは既定で展開されています。

</details>

<details>

<summary>ここに展開可能なタイトルを追加</summary>

ここに展開可能な本文を追加してください。この展開可能ブロックは既定で折りたたまれています。

</details>
```

{% endcode %}

### 制限事項

展開可能なブロック内で作成できるブロックにはいくつか制限があります。展開可能なブロックで新しい行を開始し、を押すと、完全な一覧を確認できます `/` を押して挿入パレットを表示すると、追加できるすべてのブロックを確認できます。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/creating-content/blocks/expandable.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
