Manual

语法使用手册

  1. 列表:

1
2
3
4
5
6
7
8
9
有序号:
1. 第一点
2. 第二点
3. 第三点

无序号:
* 星号列表
+ 加号列表
- 减号列表

效果:

  1. 第一点
  2. 第二点
  3. 第三点
  • 星号列表
  • 加号列表
  • 减号列表
  1. 块注释

1
2
3
4
5
6
7
8
9
10
11
12
> 区块引用
下一行

或者:
{% blockquote %}
普通的引用
下一行
{% endblockquote %}

嵌套引用
> 一层
>> 两层

效果:

区块引用
下一行

普通的引用
下一行

一层

两层

  1. 分割线

1
2
3
4
虚线:
***
或者(实线)
---

效果:


虚线


实线

  1. 链接

1
2
[这是一个绝对路径的链接](https://hexo.io/zh-cn/docs/writing.html)
[这是一个相对路径的链接](/2017/08/07/hello-world/)

这是一个绝对路径的链接
这是一个相对路径的链接

  1. 加粗

1
2
**双星加粗**
__双下划线加粗__

双星加粗
双下划线加粗

  1. 斜体

1
2
*星号斜体*
_下划线斜体_

星号斜体
下划线斜体

  1. 删除线
    1
    ~~删除线~~

删除线

  1. 图片

1
2
3
4
5
![图1. 我最爱的炮兵](/assert/img.jpg "Title")

{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}

{% img [box-model] http://weex.apache.org/cn/references/images/css-boxmodel.png 377 340 weex 盒模型 %}

图1. 我最爱的炮兵

  1. 代码


1
2
3
多行代码块使用三个`
单行代码使用一个`
console.log('hello world!')

  1. 标题

1
2
3
4
5
6
7
8
9
10
11
12
13
方法1: - 和 = (任何数量等效)
一级标题
===
二级标题
---

方法2: #
# 一级 H1
## 二级 H2
### 三级 H3
#### 四级 H4
##### 五级 H5
###### 六级 H6

方法1: - 和 =

一级标题

二级标题

方法2: #

一级

二级

三级

四级

五级
六级
  1. jsfiddle

    1
    2
    3
    {% jsfiddle shorttag [tabs] [skin] [width] [height] %}

    {% jsfiddle stardew/ffnm6Lsd/1/ %} 点击左上角fiddles
  1. iframe

    1
    2
    3
    {% iframe url [width] [height] %}

    {% iframe https://www.baidu.com/ 500 300 %}
  1. link

    1
    2
    3
    {% link text url [external] [title] %}

    你好,我是{% link 百度 https://www.baidu.com/ 搜索 度娘 %}.
你好,我是百度.
  1. 表格

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
左中右对齐


dog | bird | cat
--- | ---- | ---
foo | foo | foo
bar | bar | bar
baz | baz | baz

dog | bird | cat
:---- | :---- | :----
foo | foo | foo
bar | bar | bar
baz | baz | baz

dog | bird | cat
:----: | :----: | :----:
foo | foo | foo
bar | bar | bar
baz | baz | baz

dog | bird | cat
----: | ----: | ----:
foo | foo | foo
bar | bar | bar
baz | baz | baz
dog bird cat
foo foo foo
bar bar bar
baz baz baz
dog bird cat
foo foo foo
bar bar bar
baz baz baz
dog bird cat
foo foo foo
bar bar bar
baz baz baz
dog bird cat
foo foo foo
bar bar bar
baz baz baz
  1. 原生代码

1
2
3
4
5
6
7
8
{% raw %}
content
{% endraw %}

或者直接
content

<span class="color-box" style="background:#FF00FF;color:#FF00FF"> yy </span> #FF00FF

yy #FF00FF

  1. 转义

符号 转义
! &#33;
&#34;&quot;
# &#35;
$ &#36;
% &#37;
& &#38;&amp;
&#39;
( &#40;
) &#41;
* &#42;
+ &#43;
< &#60;&lt;
= &#61;
> &#62;&gt;
? &#63;
@ &#64;
[ &#91;
\ &#92;
] &#93;
{ &#123;
| &#124;(竖线)
} &#125;