> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/creating-content/blocks.md).

# 块

GitBook 是一款基于块的编辑器，这意味着你可以向内容中添加不同种类的块——从标准文本和图片到交互式块。你的页面可以包含你想要的任意块组合，而且每个页面可包含的块数量没有限制。

<figure><img src="/files/260f04a7bea5f53a2efed5baf4b856d56f05492d" alt="A GitBook screenshot showing the available content blocks"><figcaption><p>GitBook 的内置内容块。</p></figcaption></figure>

### 插入新的内容块

你可以使用鼠标在现有块下方插入新的内容块：

1. 将鼠标悬停在你需要新内容块位置上方的块上。
2. 点击 `+` 左侧出现的图标以打开插入面板。
3. 从下拉菜单中选择你想要的块进行插入。

或者，在新的一行中，你可以按 `/` 以打开插入面板，其中列出了所有可用的块。你可以滚动列表查找想要的块，或使用键盘搜索想要的块，在列表中上下导航，并通过 `Enter`.

### 退出块

某些内容块会捕获编辑光标，以便你可以在该块的上下文中添加内容。例如，当你在 [提示块](/docs/documentation/zh/creating-content/blocks/hint.md)中写作时，按 `Enter` 会在提示块内添加新行，而不是在下面添加新段落。

完成后，你可以通过使用左侧的 `+` 按钮插入新块，或者按 **⌘ + Enter** （Mac）或 **Ctrl + Enter** （PC）继续向页面添加新内容。

### 选择块并与所选块交互

你可以在块内将光标放置其中后按 `Esc` 键来选择单个块。你也可以通过高亮其中的内容并按 `Esc`.

选中后，你可以：

* 在按住 **Shift ⇧** 键的同时点击其他块来选择更多块。
* 使用 **↑** 和 **↓** 键向上或向下移动，以选择上方或下方的块
* 使用 **⌘ + C** （Mac）或 **Ctrl + C** （Windows）复制整个块
* 使用 **⌘ + X** （Mac）或 **Ctrl + X** （Windows）复制整个块
* 使用 **⌫** 或 **Del**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/creating-content/blocks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
