hexo语法体验

Image

在文章中插入指定大小的图片。

标签插件(Tag Plugins)

引用块

在文章中插入引言,可包含作者、来源和标题。

别号: quote

content

[author[source]] [link] [source_link_title]

样例

没有提供参数,则只输出普通的 blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.

111111

222222

333


代码块

在文章中插入代码。

别名: code

code snippet

样例

普通的代码块

alert('Hello World!');

alert(‘Hello World!’);

指定语言

[rectangle setX: 10 y: 10 width: 20 height: 20];

[rectangle setX: 10 y: 10 width: 20 height: 20];

[rectangle setX: 10 y: 10 width: 20 height: 20];

附加说明

array.map(callback[, thisArg])

Array.map
array.map(callback[, thisArg])

附加说明和网址

_.compact([0, 1, false, 2, '', 3]);
=> [1, 2, 3]

_.compactUnderscore.js
_.compact([0, 1, false, 2, ‘’, 3]);
=> [1, 2, 3]

反引号代码块

另一种形式的代码块,不同的是它使用三个反引号来包裹。

[title] [url] [link text]
code snippet

在文章中插入链接,并自动给外部链接添加 target=”_blank” 属性。

text url [external] [title]

Youtube

在文章中插入 Youtube 视频。

Vimeo

在文章中插入 Vimeo 视频。

引用文章

引用其他文章的链接。

引用资源

引用文章的资源。