> 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/chuang-jian-nei-rong/blocks.md).

# 块

在你的内容中添加和编辑块

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

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FspecLXwmhIxrNj5QDyol%2Fcreating-content-blocks%402x%20(1).png?alt=media&amp;token=a1a7dbe0-f83d-4551-8f38-5665d02221bd" alt="A GitBook screenshot showing the available content blocks"><figcaption><p>GitBook 内置的内容块。</p></figcaption></figure>

### 插入新的内容块

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

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

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

### 退出块

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

完成后，你可以继续向页面添加新内容，方法是通过 `+` 按钮在内容左侧插入一个新的块，或者按下 **⌘ + Enter** （在 Mac 上）或 **Ctrl + Enter** （在电脑上）。

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

你可以通过按下 `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/chuang-jian-nei-rong/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.
