MarkDown

about.jpg

1. 标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

This is an H1

  1. This is an H1
    ===

This is an H2

a. This is an H2

2. 列表

无序列表

  • 1
  • 2
  • 3

等同于:

  • Red
  • Green
  • Blue

也等同于:

  • Red
  • Green
  • Blue

中间空了一行:

  • Bird

  • Magic

有序列表

  1. 1
  2. 2
  3. 3

列表内引用/代码块

  • A list item with a blockquote:

    This is a blockquote
    inside a list item.

引用需要缩进

  • 一列表项包含一个列表区块:

    <代码写在这>
    

行首出现数字-句点-空白,要避免这样的状况,你可以在句点前面加上反斜杠。

  1. What a great season.

1986. What a great season.

3. 引用

这里是引用

嵌套引用

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

要注意符号和文本间的空格

4. 图片与连接

插入连接

Baidu

插入图片

2017-01-21 170702.jpg

5. 粗体与斜体

这里是粗体

这里是斜体

6. 表格

比较麻烦,后面再说!

7. 代码

public void revive(Object arg) { ScriptParams params = (ScriptParams) arg; Player player = params.GetPlayer(); Position pos = ONEBIRTH; if (player.getCamp() == CAMPB) { pos = TWOBIRTH; } if (!PlayerState.Dead.compare(player.getState())) { LOG.error(player.getName() + "(" + player.getId() + ")已经不在死亡状态!"); return; } LOG.error(player.getName() + "(" + player.getId() + ") 在跨服资源争夺战中死亡复活!rewar:269"); //原地复活后 Manager.playerManager.playerRelive(player, PlayerDefine.PlayerReliveType_GmCurPos, false, pos); }

使用 tab 键即可缩进

要在 Markdown 中建立代码区块很简单,只要简单地缩进 4 个空格或是 1 个制表符就可以,例如,下面的输入:

这是一个普通段落:

这是一个代码区块

8. 分割线

分割线的语法只需要另起一行,连续输入三个星号即可。







9. 强调

single asterisks

single underscores

double asterisks

double underscores

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容