Markdown是一种可以使用普通文本编辑器编写的标记语言,通过类似HTML的标记语法,它可以使普通文本内容具有一定的格式。
用途
Markdown的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客。世界上最流行的博客平台WordPress和大型CMS如Joomla、Drupal都能很好的支持Markdown。完全采用Markdown编辑器的博客平台有Ghost和Typecho。
###好用的编辑器
OSX
Linux
Windows
Chrome浏览器插件
MaDe
以上为一些常用的编辑器,另外还有很多哟。详见 10 款流行的Markdown编辑器
废话少说 快看语法(方框里的是源码 下边的是效果哟)
1.图片
|
|
2.加粗 倾斜
|
|
Mou, the missing Markdown editor for web developers.
Sometimes I want a lot of text to be bold.
Like, seriously, a LOT of text
3.另一个源的块引用 Blockquotes
|
|
Right angle brackets > are used for block quotes.
4.链接 和 邮箱
|
|
An email example@example.com link.
Simple inline link http://chenluois.com, another inline link Smaller, one more inline link with title Resize.
A reference style link. Input id, then anywhere in the doc, define the link with corresponding id:
Titles ( or called tool tips ) in the links are optional.
5.图片
|
|
An inline image , title is optional.
A reference style image.
6.行内样式和块样式
|
|
Indent each line by at least 1 tab, or 4 spaces.
var Mou = exactlyTheAppIwant;
有序列表使用: “1.” + Space:
- Ordered list item
- Ordered list item
- Ordered list item123451. Ordered list item2. Ordered list item3. Ordered list item#### 8.无序列表
无序列表使用: “*” + Space:
- Unordered list item
- Unordered list item
- Unordered list item
或者使用: “-“ + Space:
- Unordered list item
- Unordered list item
- Unordered list item123456789* Unordered list item* Unordered list item* Unordered list item#### 9.换行在文本最后换行, called `<br />` in HTML. ( Control + Return ) 文本最后输入两个空格#### 10.水平线
Three or more asterisks or dashes:
*
|
|
Setext-style:
This is H1
This is H2
atx-style:
This is H1
This is H2
This is H3
This is H4
This is H5
This is H6
|
|
Wrap with 2 tilde characters:
Strikethrough
A simple table looks like this:
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | Content Cell |
Content Cell | Content Cell | Content Cell |
If you wish, you can add a leading and tailing pipe to each line of the table:
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | Content Cell |
Content Cell | Content Cell | Content Cell |
Specify alignment for each column by adding colons to separator lines:
First Header | Second Header | Third Header |
---|---|---|
Left | Center | Right |
Left | Center | Right |
|
|
That’s some text with a footnote.[^1]
[^1]: And that’s the footnote.
```
That’s some text with a footnote.[^1]
[^1]: And that’s the footnote.