> 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%2Fgit-blob-fa5f4b7d74adbe51b5373de7c2b788110614f728%2F25_12_10_creating_content_blocks%402x.png?alt=media" alt="A GitBook screenshot showing the available content blocks"><figcaption><p>GitBook 内置的内容块。</p></figcaption></figure>

### 插入新的内容块

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

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

或者，在新的一行中，按 `/` 即可打开插入面板，其中列出了所有可用的内容块。你可以滚动列表找到所需的内容块，也可以使用键盘搜索所需的内容块、在列表中上下导航，并按 `Enter`.

### 退出块

某些内容块会捕获编辑光标，以便你在该内容块中添加内容。例如，在 [提示块](https://gitbook.com/docs/documentation/zh/chuang-jian-nei-rong/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/zh/chuang-jian-nei-rong/blocks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
