markdown

markdown入门总结

标题

在标题前加入#即可,根据#的个数分别为1~6级标题

列表

无序列表

在文字前加*即可

有序列表

在文字前加数字1.2.3.
注意符号与列表内容之间有一个空格符

引用

引用文本前加入>

这是引用

图片

right

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

粗体与斜体

这是粗体
这是斜体
这是红色
这是绿色
这是蓝色
这是大号红色

代码

#include <iostream>
using namespace std;
int main()
{
	cout<<"hello world!"<<endl;
	return 0;
}

数学公式

这是一句行内公式 $ y = x + 1 $ , 以下是整行公式:

\[a^2 + b^2 = c^2 \]

先用LeTeX Generator生成LeTeX数学公式,

\begin{align}\notag x=\frac{{-b}\pm\sqrt{b^2-4ac}} {2a} \end{align}

比如:

\begin{align}\notag your formula equation \end{align}

reference:

http://www.cnblogs.com/cmt/p/markdown-latex.html

这是一个标题。

  1. 这是第一行列表项。
  2. 这是第二行列表项。

给出一些例子代码:

return shell_exec("echo $input | $markdown_script");

you will face insert error of formulation equation
This link has no title attribute.
马克飞象

posted @ 2017-07-15 11:18  fariver  阅读(188)  评论(0编辑  收藏  举报