markdown使用
一些链接
在线转换器
http://daringfireball.net/projects/markdown/dingus
在线显示
https://markable.in/editor/
http://write.blog.csdn.net/mdeditor
专门为markdown设计的编辑器
Windows: MarkdownPad
Linux: ReText
Mac:Mou
Markdown语法说明
http://wowubuntu.com/markdown/index.html#link
段落、标题、区块代码:
= (最高阶标题)
大标题
======
- (第二阶标题)
小标题
------
行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶
###6种标题第3种
区块引用 > 角括号
> 这是引用
修辞和强调:使用星号和底线来标记需要强调的区段(1个斜体2个加粗)删除线~
**强调内容** __强调内容__ *强调内容* _强调内容_
~~Mistaken text.~~
无序列表:星号、加号和减号 三种等效
* Candy.
+ Candy.
- Candy.
有序列表:数字接着一个英文句点 中间至少一个空格或制表符 + 文字
1. Bird
2. McHale
代码区块:<pre><code>代码</code></pre>
<pre><code>String str = "sdqqfgkkkhjppppkl";</code></pre>
需要高亮的代码块的前一行及后一行使用三个反引号“`”
\```java
String str = "sdqqfgkkkhjppppkl";
\```
分隔线:三个以上的星号、减号、底线,行内不能有其他东西 三种等效
* * *
***
*****
- - -
反斜杠:特殊字符转义* - _
链接:使用角括号来把文字转成链接
This is an [example link](http://example.com/).
This is an [example link](http://example.com/ "With a Title").//选择性的加上 title 属性
参考式的链接是在链接文字的括号后面再接上另一个方括号,
而在第二个方括号里面要填入用以辨识链接的标记
This is [an example] [id] reference-style link.
在文件的任意处,你可以把这个标记的链接内容定义出来
[id]: http://example.com/ "Optional Title Here"
图片:
![alt text](/path/to/img.jpg "Title") //title 是选择性的
LaTex 数学公式
行内公式
Γ(n)=(n−1)!∀n∈N
$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$
块级公式
x=−b±b2−4ac−−−−−−−√2a
$$ x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$
表格:使用| ------ |:------:| -----:|
对齐
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
个人觉得UML 数学公式 表格还是图片方便