Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Markdown Horizontal Rule

Horizontal rule

A horizontal rule is used to visually separate different parts of a document and create a clear content hierarchy.

Three ways to write a horizontal rule

Markdown supports three ways to create a horizontal rule:

1. Use three hyphens:

---

2. Use three asterisks:

***

3. Use three underscores:

___

All three render the same:

Extended syntax

You can use more symbols, but three is the minimum requirement:

-----

*****

_____

** Effect of spaces: ** Spaces are allowed between the symbols.

- - -

* * *

_ _ _


When to use a horizontal rule

Section separation

# 第一章:概述



内容描述...



---



# Chapter 2: Installation



安装步骤...



---



# Chapter 3: Usage



使用说明...

Content block separation

## 产品特性



### 核心功能

- 功能A

- 功能B

- 功能C



---



### 技术优势

- 优势1

- 优势2

- 优势3



---



### 应用场景

场景描述...

页面底部分隔

markdown正文内容...



---



## Related Links



- [官方网站](https://example.com)

- [技术文档](https://docs.example.com)

- [社区论坛](https://forum.example.com)



---



*Last updated: March 15, 2024*

Separate quotes from body text

项目介绍的正文内容...



---



> **免责声明**

> 

> 本软件按"原样"提供,不提供任何形式的明示或暗示担保。



---



继续其他内容...


Best practices for horizontal rules

Avoid overuse:

# 标题



内容1



--- (不必要的分割线)



## 子标题



内容2

Use it reasonably:

# 项目文档



项目简介...



---



## Installation Guide



安装步骤...



---



## Usage Instructions



使用方法...



---



## Frequently Asked Questions



FAQ内容...

Combining with other elements:

## 版本历史



### v2.0.0 (2024-03-15)

- 新增功能A

- 修复问题B



---



### v1.5.0 (2024-02-01)

- 新增功能C

- 优化性能



---



### v1.0.0 (2024-01-01)

- 初始版本发布