首页 > 其他分享 >Markdown语法极简说明

Markdown语法极简说明

时间:2022-10-23 11:45:42浏览次数:77  
标签:极简 Markdown text 元素 列表 语法 item

基本语法

元素 Markdown 语法
标题 # H1
## H2
### H3
粗体 ** bold text **
斜体 * italicized text *
引用块 > blockquote
有序列表 1. First item
2. Second item
3. Third item
无序列表 - First item
- Second item
- Third item
代码 `code`
分隔线 ---
链接 [title](https://www.example.com)
图片 ![alt text](image.jpg)

扩展语法

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

元素 Markdown 语法
表格 | Syntax      | Description |
| ----------- | ----------- |
| Header      | Title       |
| Paragraph   | Text        |
代码块 {
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
脚注 Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
标题编号 ### My Great Heading {#custom-id}
定义列表 term
: definition
删除线 ~~ The world is flat. ~~
任务列表 - [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

其它资源

参考

后记

这篇文章就是用Markdown的语法写的,习惯了以后感觉是挺好用的~

标签:极简,Markdown,text,元素,列表,语法,item
From: https://www.cnblogs.com/vicky2021/p/16818162.html

相关文章