# MarkDown 语法

## 标题

{% hint style="info" %}
注意:#号后面必须拥有一个**空格**然后**再写内容**才行
{% endhint %}

**语法：**

```
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
```

**效果：**

## 这是一级标题

### 这是二级标题

#### 这是三级标题

**这是四级标题**

**这是五级标题**

**这是六级标题**

## **字体效果**

*斜体文本*

```
*斜体文本*
_斜体文本_
```

**粗体文本**

```
**粗体文本**
__粗体文本__
```

***粗斜体文本***

```
***粗斜体文本***
___粗斜体文本___
```

~~删除线效果~~

```
~删除线效果~
~~删除线效果~~
```

## **插入超链接**

[灵工艺文档](https://docs.nullcraft.org/)

```
[这里可以写文字](这里写超链接URL地址)

//例子
[灵工艺文档](https://docs.nullcraft.org/)
```

## **插入图片**

```
![这里可以图片描述](这里写图片URL地址)

//例子
![灵工艺](https://nullcraft.org/logo.png)
```

**效果**

<div align="left"><figure><img src="/files/znlbBlrLrescNQU7LOCO" alt="" width="200"><figcaption></figcaption></figure></div>

## **代码语法高亮**

### 使用 \` (反单引号，又称反引号) ESC下方键即可标记区块

```
文件夹的名字是 `server`
```

**效果**

文件夹的名字是 `server`

### 代码块 使用 连续三个 \` 符号开始 三个结尾区间内写内容

{% hint style="info" %}
在顶部 \`\`\` 后面写代码对应的语言名字即可使用颜色来渲染代码显示。
{% endhint %}

````
```php
<?php
  echo 'Hello World';
?>
```
````

**效果**

```php
<?php
  echo 'Hello World';
?>
```

## 列表

{% tabs %}
{% tab title="无序列表" %}
{% hint style="info" %}
无序列表可以使用 `- 号`、`+ 加号`、`* 星号` 作为列表标记，在标记后添加一个空格然后再写内容即可生成一个列表。
{% endhint %}

```
- 第一项
- 第二项
- 第三项

+ 第一项
+ 第二项
+ 第三项

* 第一项
* 第二项
* 第三项
```

**演示**

* 第一项
* 第二项
* 第三项
  {% endtab %}

{% tab title="有序列表" %}
{% hint style="info" %}
有序列表使用数字并加上 "**.**"`点号` 来表示
{% endhint %}

```
1. 第一项
2. 第二项
3. 第三项
```

**演示**

1. 第一项
2. 第二项
3. 第三项
   {% endtab %}

{% tab title="列表嵌套" %}

#### 无序嵌套

```
- 第一项
    - 第一项嵌套的第一个元素
    - 第一项嵌套的第二个元素
- 第二项
    - 第二项嵌套的第一个元素
    - 第二项嵌套的第二个元素
```

**效果**

* 第一项
  * 第一项嵌套的第一个元素
  * 第一项嵌套的第二个元素
* 第二项
  * 第二项嵌套的第一个元素
  * 第二项嵌套的第二个元素

#### 有序嵌套

```
1. 第一项：
    - 第一项嵌套的第一个元素
    - 第一项嵌套的第二个元素
2. 第二项：
    - 第二项嵌套的第一个元素
    - 第二项嵌套的第二个元素
```

**效果**

1. 第一项：
   * 第一项嵌套的第一个元素
   * 第一项嵌套的第二个元素
2. 第二项：
   * 第二项嵌套的第一个元素
   * 第二项嵌套的第二个元素
     {% endtab %}
     {% endtabs %}

## 引用

```csharp
> 一级引用
> > 二级引用
> > > 三级引用
```

## 脚注

Markdown作者是 \[^约翰·格鲁伯]。

```
[^Markdown]: 约翰·格鲁伯(John Gruber)
```


---

# 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://docs.nullcraft.org/tutorial/syntax/markdown.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.
