Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment
Markdown Test
标题层级
1 | # H1 |
H1
H2
H3
H4
H5
H6
另外, H1、H2还有其他语法:
Alt-H1
Alt-H2
文本:斜体、加粗、删除线
1 | Emphasis, aka italics, with *asterisks* or _underscores_. |
Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes. Scratch this.
列表
1 | 1. First ordered list item |
- First ordered list item
- Another item
- Unordered sub-list.
Actual numbers don’t matter, just that it’s a number
Ordered sub-list
And another item.
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we’ll use three here to also align the raw Markdown).
To have a line break without a paragraph, you will need to use two trailing spaces.
Note that this line is separate, but within the same paragraph.
(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
- Unordered list can use asterisks
- Or minuses
- Or pluses
Paragraph In unordered list
For example like this.
Common Paragraph with some text.
And more text.
链接
参考博文1
参考博文2
参考博文3
You can find more information about LaTeX mathematical expressions here.
引用
1 | > 引用 |
引用
嵌套引用
表格
1 | | Tables | Are | Cool | |
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | test |
| col 2 is | centered | test |
| col 2 is | default(left-aligned) | test |
1 | Markdown | Less | Pretty |
| Markdown | Less | Pretty |
|---|---|---|
| Still | renders |
nicely |
| 1 | 2 | 3 |
Latex
These render differently. For example, type the following to show inline mode:
$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$
or type the following for display mode:
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$
分割线
1 | --- |
Hyphens
Asterisks
Underscores
脚注
This is a digital footnote[^1].
This is a footnote with “label”[^label]
[^1]: This is a digital footnote
[^label]: This is a footnote with “label”
You could predefine link references. Format like this: [id]: URL "Title"
Title is also optional. And the you refer the link, format like this: [Link Text][id]
1 | [id]: http://example.com/ "Optional Title Here" |
This is an example reference-style link.
以下几种写法是等价的
1 | [foo]: http://example.com/ "Optional Title Here" |
Uses an empty set of square brackets, the link text itself is used as the name.
1 | [Google]: http://google.com/ |
图片
1 | hover to see the title text: |
hover to see the title text:
Inline-style:
![]()
Reference-style:![]()
视频
1 | <a href="https://www.youtube.com/watch?feature=player_embedded&v=ARted4RniaU |
Pure markdown version:
