且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

阿里云开发者社区Markdown语法

更新时间:2022-05-29 18:57:57

Markdown是一套简洁可读性极好的标记语言,非常适合用来写作。

阿里云开发者社区支持标准语法和GFM语法,本页面只列出了大概语法,更详细的文档可以参考:

http://daringfireball.net/projects/markdown/syntax
https://help.github.com/articles/github-flavored-markdown
http://jianshu.io/p/q81RER

标题

# 一级标题

## 二级标题

……

###### 六级标题

引用

> A man who stands for nothing will fall for anything.

文字加粗、斜体、删除(GFM)

**bold** text, __bold__ text
*italic* text, _italic_ text

~~deleted text~~

链接

[this is a link](http://name.com)

图片

![](http://name.com/pic.jpg)

支持直接截图粘贴到编辑器里。
![screenshot](http://name.com/pic.jpg)

列表

- item1
- item2

1. item1
2. item2

表格(GFM)

| foo | bar |
| --- | --- |
| yep | nop |

代码

`console.log(1)`

代码块(GFM)(支持语法高亮)

function fn() {
  alert(2)
}