> 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/formatting.md).

# 格式化你的内容

要格式化文本，只需选中你想要的词语，然后从上下文菜单中选择一种格式——或者使用键盘快捷键或通过 Markdown 语法来格式化文本。

{% hint style="info" %}
我们使用 Mac 按键写出了这些快捷键。请使用 **Control** 替代 **⌘（Command）** 在 Windows 或 Linux 操作系统上。请查看我们的键盘快捷键部分，了解所有操作系统的全部快捷键。
{% endhint %}

#### 粗体

键盘快捷键： <kbd>⌘</kbd> + <kbd>B</kbd>

{% tabs %}
{% tab title="Markdown" %}

```markdown
**粗体**
```

{% endtab %}
{% endtabs %}

#### 斜体

键盘快捷键： <kbd>⌘</kbd> + <kbd>I</kbd>

{% tabs %}
{% tab title="Markdown" %}

```markdown
_斜体_
```

{% endtab %}
{% endtabs %}

#### 删除线

键盘快捷键： <kbd>⇧</kbd> + <kbd>⌘</kbd> + <kbd>S</kbd>

{% tabs %}
{% tab title="Markdown" %}

```markdown
~~删除线~~
```

{% endtab %}
{% endtabs %}

#### 代码

键盘快捷键： <kbd>⌘</kbd> + <kbd>E</kbd>

{% tabs %}
{% tab title="Markdown" %}

```markdown
`代码`
```

{% endtab %}
{% endtabs %}

#### 链接

键盘快捷键： <kbd>⌘</kbd> + <kbd>K</kbd>

当你为页面中的文本添加链接时，系统会提示你提供链接。你可以添加任何 URL，但如果你链接到你网站中的另一个页面或部分，我们建议使用相对链接。

这是一个 [指向外部页面的链接](https://www.gitbook.com).

这是一个 [指向此部分中另一页的链接](/docs/documentation/zh/creating-content/blocks.md).

这是一个 [指向此页中某个部分的链接](#code).

这是一个 [会打开一封向特定地址发送电子邮件的链接](mailto:support@gitbook.com).

#### 颜色和背景颜色

点击上下文菜单中的颜色图标，并为文本或其背景选择一种颜色。

<mark style="color:橙色;">这段文本是橙色的。</mark>

<mark style="background-color:orange;">这段文本的背景是橙色的。</mark>

### 从右到左的文本

GitBook 目前不支持从右到左的内容。段落和标题会自动检测 RTL 文本并调整其布局，但列表和其他内容块可能无法正确对齐，而且某些语言的字体质量可能会降低。


---

# 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/formatting.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.
