简介 链接到标题
这是 粗体 文本,这是 斜体 文本。
访问 Hugo 网站!
PS:什么NTR
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 链接到标题
$ hexo new "My New Post"
More info: Writing
Run server 链接到标题
$ hexo server
More info: Server
Generate static files 链接到标题
$ hexo generate
More info: Generating
Deploy to remote sites 链接到标题
$ hexo deploy
More info: Deployment
以下是一些markdown功能测试,测试代码来自Leanote 链接到标题
1. 排版 链接到标题
粗体 斜体
这是一段错误的文本。
引用:
引用Leanote官方的话, 为什么要做Leanote, 原因是…
有充列表:
- 支持Vim
- 支持Emacs
无序列表:
- 项目1
- 项目2
2. 图片与链接 链接到标题
图片:
链接:
3. 标题 链接到标题
以下是各级标题, 最多支持5级标题
h1 链接到标题
h2 链接到标题
h3 链接到标题
h4 链接到标题
h4 链接到标题
h5 链接到标题
4. 代码 链接到标题
示例:
function get(key) {
return m[key];
}
代码高亮示例:
/**
* nth element in the fibonacci series.
* @param n >= 0
* @return the nth element, >= 0.
*/
function fib(n) {
var a = 1, b = 1;
var tmp;
while (--n >= 0) {
tmp = a;
a += b;
b = tmp;
}
return a;
}
document.write(fib(10));
class Employee:
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount += 1
5. Markdown 扩展 链接到标题
Markdown 扩展支持:
- 表格
- 定义型列表
- Html 标签
- 脚注
- 目录
- 时序图与流程图
- MathJax 公式
5.1 表格 链接到标题
| Item | Value |
|---|---|
| Computer | $1600 |
| Phone | $12 |
| Pipe | $1 |
可以指定对齐方式, 如Item列左对齐, Value列右对齐, Qty列居中对齐
| Item | Value | Qty |
|---|---|---|
| Computer | $1600 | 5 |
| Phone | $12 | 12 |
| Pipe | $1 | 234 |
5.2 定义型列表 链接到标题
- 名词 1
- 定义 1(左侧有一个可见的冒号和四个不可见的空格)
- 代码块 2
- 这是代码块的定义(左侧有一个可见的冒号和四个不可见的空格)
代码块(左侧有八个不可见的空格)
5.3 Html 标签 链接到标题
支持在 Markdown 语法中嵌套 Html 标签,譬如,你可以用 Html 写一个纵跨两行的表格:
<table>
<tr>
<th rowspan="2">值班人员</th>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
</tr>
<tr>
<td>李强</td>
<td>张明</td>
<td>王平</td>
</tr>
</table>
提示, 如果想对图片的宽度和高度进行控制, 你也可以通过img标签, 如:
5.4 脚注 链接到标题
Leanote1来创建一个脚注
5.5 目录 链接到标题
通过 [TOC] 在文档中插入目录, 如:
[TOC]
5.6 时序图与流程图 链接到标题
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
流程图:
st=>start: Start
e=>end
op=>operation: My Operation
cond=>condition: Yes or No?
st->op->cond
cond(yes)->e
cond(no)->op
提示: 更多关于时序图与流程图的语法请参考:
5.7 MathJax 公式 链接到标题
$ 表示行内公式:
质能守恒方程可以用一个很简洁的方程式 $E=mc^2$ 来表达。
$$ 表示整行公式:
$$\sum_{i=1}^n a_i=0$$
$$f(x_1,x_x,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2 $$
$$\sum^{j-1}{k=0}{\widehat{\gamma}{kj} z_k}$$
更复杂的公式: $$ \begin{eqnarray} \vec\nabla \times (\vec\nabla f) & = & 0 \cdots\cdots梯度场必是无旋场\ \vec\nabla \cdot(\vec\nabla \times \vec F) & = & 0\cdots\cdots旋度场必是无散场\ \vec\nabla \cdot (\vec\nabla f) & = & {\vec\nabla}^2f\ \vec\nabla \times(\vec\nabla \times \vec F) & = & \vec\nabla(\vec\nabla \cdot \vec F) - {\vec\nabla}^2 \vec F\ \end{eqnarray} $$
访问 MathJax 参考更多使用方法。
[!NOTE]
111
[!TIP]
222
[!IMPORTANT]
333
[!WARNING]
444
[!CAUTION]
张三
多行
测试文字2
去必应
iframe框架