1.使用 # 号标记不同等级的标题
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
2.使用 = 和 - 标记一级和二级标题
This is an H1
This is an H2
3.可在用 三个` 包围的代码块头标明高亮的语法名字
def add(a,b):
a = list(range(1,10))
b = list(range(10))
return a+b
public abstract class L2Character extends L2Object {
public static final Short ABNORMAL_EFFECT_BLEEDING = 0x0_0_0_1; // not sure
public void moveTo(int x, int y, int z) {
_ai = null;
_log.warning("Should not be called");
if (1 > 5) {
return;
}
}
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
4.markdown字体
斜体文本
斜体文本
粗体文本
粗体文本
粗斜体文本
粗斜体文本
5.网址链接
6.图片链接
![Alt text](图片链接 "optional title")
Alt text:图片的Alt标签,用来描述图片的关键词,可以不写。最初的本意是当图片因为某种原因不能被显示时而出现的替代文字,后来又被用于SEO,可以方便搜索引擎根据Alt text里面的关键词搜索到图片。
图片链接:可以是图片的本地地址或者是网址。
"optional title":鼠标悬置于图片上会出现的标题文字,可以不写。
This is a regular paragraph.
Foo |
This is another regular paragraph.
Coding.net 为软件开发者提供基于云计算技术的软件开发平台,包括项目管理,代码托管,运行空间和质量控制等等。
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
This is the first level of quoting.
This is nested blockquote.
Back to the first level.
这是第一级引用。
这是第二级引用。
现在回到第一级引用。
这是一个标题。
- 这是第一行列表项。
- 这是第二行列表项。
给出一些例子代码:
return shell_exec(
echo $input | $markdown_script
);
- Red
- Green
- Blue
- Red
- Green
- Blue
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus. -
Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing. -
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus. -
Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
-
This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.Vestibulum enim wisi, viverra nec, fringilla in, laoreet
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
sit amet velit. -
Suspendisse id sem consectetuer libero luctus adipiscing.
-
This is a list item with two paragraphs.
This is the second paragraph in the list item. You’re
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. -
Another item in the same list.
This is a normal paragraph:
This is a code block.
This is an example inline link.
This link has no title attribute.
- Coding.net有以下主要功能:
代码托管平台
在线运行环境
代码质量监控
项目管理平台
- 不勾选
- 勾选
Coding,让开发更简单
Coding,让开发更简单
超强大的云开发平台Coding
超强大的云开发平台Coding
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | Content Cell |
Content Cell | Content Cell | Content Cell |
First Header | Second Header | Third Header |
---|---|---|
Left | Center | Right |
Left | Center | Right |
这是分隔线上部分内容
这是分隔线上部分内容
a
+
b
a + b
a+b
x
1
x_1
x1
x 1 2 x_1^2 x12
x 1 2 x^2_1 x12
x 22 ( n ) x_{22}^{(n)} x22(n)
∗ x ∗ {}^*x^* ∗x∗
x b a l a b a l a b a l a x_{balabala}^{bala} xbalabalabala
x + y 2 \frac{x+y}{2} 2x+y
1 1 + 1 2 \frac{1}{1+\frac{1}{2}} 1+211
2 < 3 3 \sqrt{2}<\sqrt[3]{3} 2<33
1 + 1 + a 2 p \sqrt{1+\sqrt[p]{1+a^2}} 1+p1+a2
1 + 1 + a 2 p ​ \sqrt{1+\sqrt[^p\!]{1+a^2}} 1+p1+a2
∑ k = 1 n 1 k \sum_{k=1}^{n}\frac{1}{k} k=1∑nk1
∑ k = 1 n 1 k \sum_{k=1}^n\frac{1}{k} ∑k=1nk1
∫ a b f ( x ) d x \int_a^b f(x)dx ∫abf(x)dx
∫ a b f ( x ) d x \int_a^b f(x)dx ∫abf(x)dx
紧贴
a
​
b
a\!b
ab
没有空格
a
b
ab
ab
小空格 a,b
中等空格 a;b
大空格 a\ b
quad空格
a
b
a\quad b
ab
两个quad空格
a
b
a\qquad b
ab
∫ a b f ( x ) d x \int_a^b f(x)\mathrm{d}x ∫abf(x)dx
∫ a b f ( x )   d x \int_a^b f(x)\,\mathrm{d}x ∫abf(x)dx
( ∑ k = 1 2 N 2 1 k ) \left(\sum_{k=\frac{1}{2}}^{N^2}\frac{1}{k}\right) ⎝⎛k=21∑N2k1⎠⎞
1 2 3 4 \begin{matrix}1 & 2\\\\3 &4\end{matrix} 1324
( 1 2 3 4 ) \begin{pmatrix}1 & 2\\\\3 &4\end{pmatrix} ⎝⎛1324⎠⎞
[ 1 2 3 4 ] \begin{bmatrix}1 & 2\\\\3 &4\end{bmatrix} ⎣⎡1324⎦⎤
{ 1 2 3 4 } \begin{Bmatrix}1 & 2\\\\3 &4\end{Bmatrix} ⎩⎨⎧1324⎭⎬⎫
∣ 1 2 3 4 ∣ \begin{vmatrix}1 & 2\\\\3 &4\end{vmatrix} ∣∣∣∣∣∣1324∣∣∣∣∣∣
∣ 1 2 3 4 ∣ \left|\begin{matrix}1 & 2\\\\3 &4\end{matrix}\right| ∣∣∣∣∣∣1324∣∣∣∣∣∣
∥ 1 2 3 4 ∥ \begin{Vmatrix}1 & 2\\\\3 &4\end{Vmatrix} ∥∥∥∥∥∥1324∥∥∥∥∥∥
\mathbf{X} =
\left( \begin{array}{ccc}
x_{11} & x_{12} & \ldots \\
x_{21} & x_{22} & \ldots \\
\vdots & \vdots & \ddots
\end{array} \right)
KaTeX parse error: No such environment: multline at position 8: \begin{̲m̲u̲l̲t̲l̲i̲n̲e̲}̲ x = a+b+c+{} \…
x = a + b + c + d + e + f + g \begin{aligned} x ={}& a+b+c+{} \\\\ &d+e+f+g \end{aligned} x=a+b+c+d+e+f+g
KaTeX parse error: No such environment: gather at position 8: \begin{̲g̲a̲t̲h̲e̲r̲}̲ a = b+c+d \\\\…
KaTeX parse error: No such environment: align at position 8: \begin{̲a̲l̲i̲g̲n̲}̲ a &= b+c+d \\\…
y = { − x , x ≤ 0 x , x > 0 y=\begin{cases} -x,\quad x\leq 0 \\\\ x,\quad x>0 \end{cases} y=⎩⎪⎨⎪⎧−x,x≤0x,x>0
∑
i
=
0
n
i
2
\sum_{i=0}^{n}i^2
∑i=0ni2 %第一种
∑
i
=
0
n
i
2
\sum_{i=0}^{n}i^2
i=0∑ni2 %第二种