前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Markdown

Markdown

作者头像
繁华是客
发布2023-03-03 20:22:18
3730
发布2023-03-03 20:22:18
举报

换行

语法规范是空格+空格+回车换行

超链接

方法一:

代码语言:javascript
复制
[FreeBuf](http://www.freebuf.com/)

<http://www.freebuf.com/>

FreeBuf

http://www.freebuf.com/

方法二:

代码语言:javascript
复制
Some text with [a link][1] and
another [link][2].

[1]: http://example.com/ "Title"
[2]: http://example.org/ "Title"
The reference section can be anywhere in the document

Some text with a link and

another link .

列表

代码语言:javascript
复制
1. 有序列表项 1

2. 有序列表项 2

3. 有序列表项 3
  1. 有序列表项 1
  2. 有序列表项 2
  3. 有序列表项 3
代码语言:javascript
复制
* 无序列表项 1

* 无序列表项 2

* 无序列表项 3
  • 无序列表项 1
  • 无序列表项 2
  • 无序列表项 3
  • 任务列表 1
  • 任务列表 2

强调

代码语言:javascript
复制
~~删除线~~

**加黑**

*斜体*

删除线

加黑

斜体

标题

代码语言:javascript
复制
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题

Tips: # 与标题中间要加空格。

表格

代码语言:javascript
复制
| HEADER1 | HEADER2 | HEADER3 | HEADER4 |
| ------- | :------ | :-----: | ------: |
| content | content | content | content |

HEADER1

HEADER2

HEADER3

HEADER4

content

content

content

content

  1. :—– 表示左对齐
  2. :—-: 表示中对齐
  3. —–: 表示右对齐

代码块

代码实现方式是键盘的(也就是下一点点)键3次 (不需要按Shift) 其实按Shift变成~也是可以生效的。

>(No Shift) >print 'Hello, World!'

代码语言:javascript
复制
print 'Hello, World!'

你也可以通过键盘的~键一次实现不需要高亮的代码。

引用

代码语言:javascript
复制
> This is Quote text
>>  This is Quoted quote. 

This is Quote text This is Quoted quote.

图片

代码语言:javascript
复制
![本站favicon](/images/favicon.ico)
或:
![图片示例]({{ site.url }}/images/wiki/example.jpg)

锚点

代码语言:javascript
复制
* [目录](#目录)

Emoji

:camel: :blush: :smile:

Footnotes

代码语言:javascript
复制
This is a text with footnote[^1].

[^1]: Here is the footnote 1 definition.
上一行会出现在页尾

This is a text with footnote[^1]. 解释会出现在页尾

[^1]: Here is the footnote 1 definition.

mermaid

sequenceDiagram Alice-->>John: Hello John, how are you? John-->>Alice: Great!

sequence

代码语言:javascript
复制
Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!

flowchart

代码语言:javascript
复制
st=>start: Start
e=>end
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?
io=>inputoutput: catch something...

st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1

mathjax

When

(a \ne 0)

, there are two solutions to

(ax^2 + bx + c = 0)

and they are

x = {-b \pm \sqrt{b^2-4ac} \over 2a}.

mindmap

代码语言:javascript
复制
# topic
## topic2
### topic2.1
### topic2.2
## topic3
<!--Note-->
这是一个备注
<!--/Note-->
### topic3.1
### topic3.2
#### topic3.2.1
#### topic3.2.2
#### topic3.2.3
#### topic3.2.4
#### topic3.2.5
### topic3.4
### topic3.5
### topic3.6

其他参考资料

WordPress Markdown Quick Reference

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2007-01-01 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 换行
  • 超链接
  • 列表
  • 强调
  • 标题
  • 表格
  • 代码块
  • 引用
  • 图片
  • 锚点
  • Emoji
  • Footnotes
  • mermaid
  • sequence
  • flowchart
  • mathjax
  • mindmap
  • 其他参考资料
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档