头像
YIBI

正在加载...

markdown语法

2026-06-23markdown

Markdown 是什么?

Markdown 入门基础 | Markdown 教程

基本语法

元素 Markdown 语法
标题(Heading) # H1## H2### H3
粗体(Bold) <strong>bold text</strong>
斜体(Italic) <em>italicized text</em>
引用块(Blockquote) > blockquote
有序列表(Ordered List) 1. First item 2. Second item 3. Third item
无序列表(Unordered List) - First item- Second item- Third item
代码(Code) `code`
分隔线(Horizontal Rule) ---
链接(Link) <a href="https://www.example.com">title</a>
图片(Image) <img loading="lazy" decoding="async" src="image.jpg" alt="alt text">

扩展语法

这些元素通过添加额外的功能扩展了基本语法。但是,并非所有 Markdown 应用程序都支持这些元素。

元素 Markdown 语法
脚注(Footnote) Here's a sentence with a footnote. [^1] [^1]: This is the footnote.
标题编号(Heading ID) ### My Great Heading {#custom-id}
定义列表(Definition List) term: definition
删除线(Strikethrough) ~~The world is flat.~~
任务列表(Task List) - [x] Write the press release- [ ] Update the website- [ ] Contact the media

其它

文档内跳转:

跳转1

跳转2

跳转3

跳转目标1

跳转目标2

跳转目标3