钟神秀

所有的为时已晚都是恰逢其时

钟神秀 avatar

Author

钟神秀

大三学生 · 博客写作者

Telegram

我的频道

不定期推送灵感笔记

t.me/zsxcoder
联系方式
QQ
3149261770
发送邮件
Markdown-速查表

Markdown-速查表

记录 Markdown 的用法,便于查找。

钟神秀
钟神秀 大学牛马
2025年02月11日
预计阅读 2 分钟
345 字

原文位置: https://markdown.com.cn/cheat-sheet.html#%E6%80%BB%E8%A7%88

总览

Markdown 速查表提供了所有 Markdown 语法元素的基本解释。如果你想了解某些语法元素的更多信息,请参阅更详细的 基本语法扩展语法.

基本语法

这些是 John Gruber 的原始设计文档中列出的元素。所有 Markdown 应用程序都支持这些元素。

元素Markdown 语法
标题(Heading)\ # H1 一级标题
\ ## H2 二级标题
\ ### H3 三级标题
粗体(Bold)**bold text**
斜体(Italic)*italicized text*
引用块(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)[title](https://www.example.com)
图片(Image)![alt text](image.jpg)

扩展语法

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

元素Markdown 语法
表格(Table)| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
代码块(Fenced Code Block)```
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```
脚注(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
任务列表(Task List)- [x] Write the press release
- [ ] UppubDate the website
- [ ] Contact the media

觉得这篇文章怎么样?

点个赞,让更多人看到!

分享这篇文章

知识因分享而增值

分类

技术分享

标签

markdown语法
教程

版权声明:本文作者为 钟神秀,首发于www.zsxcoder.top

遵循 CC BY-NC-SA 4.0 许可协议。转载请注明出处!