Markdown 学习笔记

兼 Markdown / Latex 渲染测试

标题

1
2
3
4
5
6
7
8
9
10
11
12
# H1
## H2
### H3
#### H4
##### H5
###### H6

H1
====

H2
----

H1

H2

H3

H4

H5
H6

H1

H2


分割线

1
2
--- (短横线)
___ (下划线)

超链接

1
2
3
4
5
6
[Example](http://example.org/)
[icon.png](./images/icon.png)
[Google](http://www.google.com/ "Put your mouse on this link")
<http://baidu.com/>
<admin@163.com>

Example icon.png Google http://baidu.com/


图片

1
![HTML5](http://html5test.com/images/html5.png "Put your mouse on this icon")
HTML5
HTML5
1
![HTML5](http://html5test.com/images/html5.png)
HTML5
HTML5

强调

1
2
3
4
*Text1*
_Text2_
**Text3**
__Text4__

Text1 Text2 Text3 Text4


列表

1
2
3
4
5
6
7
8
1. Level 1
1. Lv 1.1
2. Lv 1.2
* Level 2
3. Level 3
* Lv 3.1
+ Lv 3.2
- Lv 3.3
  1. Level 1
  2. Lv 1.1
  3. Lv 1.2
  • Level 2
  1. Level 3
  • Lv 3.1
  • Lv 3.2
  • Lv 3.3

删除线

1
~~我杀我自己~~

我杀我自己


引用

1
2
> 一级引用
>> 二级引用

一级引用 > 二级引用


代码区块

1
2
3
4
5
6
7
8
9
10
```
$echo "Hello world!"
```

```java
System.out.println("Hello world");
```

This is `Plain text` and `Java`

1
$echo "Hello world!"
1
System.out.println("Hello world");

This is Plain text and Java

注: 主要支持的语言有(我关心的) - asp - brainfuck - c - cmake - cpp - cs - csharp - css - csv - bash - go - haml - http - java - javascript - json - make - markdown - matlab - nginx - objectivec - pascal - PHP - Perl - python - rust - shell, sh, zsh, bash - sql - svg - swift - rb, jruby, ruby - vim, viml - vhdl - vue - xml - yaml


转义

1
\\ \` \* \_ \{ \} \[ \] \( \) \# \+ \- \. \! &lt; &gt;

\ ` * _ { } [ ] ( ) # + - . ! < >


表格

1
2
3
4
5
RowA | Row B
--- | ---
A1 | B1
A2 | B2
A3 | B3
RowA Row B
A1 B1
A2 B2
A3 B3

Latex

1
2
3
4
5
6
7
`$\pi$`

`$\int_a^b f(x) dx$`

\\(lim_{x\rightarrow \infty}\frac{1}{\sin x}\\)

\\(lim_{n\rightarrow \infty}(1+2^n+3^n)^\frac{1}{x+\sin n}\\)

$\pi$

$\int_a^b f(x) dx$

\(lim_{x}\)

\(lim_{n}(1+2n+3n)^\)

1
2
3
$$
P(A_i \mid B) = \frac{P(B\mid A)P(A_i)}{\sum_{j=1}^{n}P(A_j)P(B \mid A_j)}
$$

\[ P(A_i \mid B) = \frac{P(B\mid A)P(A_i)}{\sum_{j=1}^{n}P(A_j)P(B \mid A_j)} \]