Markdown是一种可以使用普通文本编辑器编写的标记语言,通过类似HTML的标记语法,它可以使普通文本内容具有一定的格式。
Markdown的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客,特别是技术文档。
这篇文章就是用Markdown写的
Markwodn的编辑器有很多种,这里推荐Mou,只支持mac。
在线编辑器也有很多,比如csdn推荐的stackedit
Markdown语法可以参考以下网址:
http://www.appinn.com/markdown/
其实,学习Markdown可以直接查看Mou的帮助,左边是代码,右边是效果,很快就可以入门了,比看上面的网址好多了。所以,我就厚颜无耻地直接贴上来了~。~
代码链接:
http://download.csdn.net/detail/u012217085/8632531
上述代码的效果如下:
Mou, the missing Markdown editor for web developers.
strong or strong ( Cmd + B )
emphasize or emphasize ( Cmd + I )
**Sometimes I want a lot of text to be bold.
Like, seriously, a LOT of text**
Right angle brackets > are used for block quotes.
An email [email protected] 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.
An inline image , title is optional.
A reference style image.
Inline code are surround by backtick
key. To create a block code:
Indent each line by at least 1 tab, or 4 spaces.
var Mou = exactlyTheAppIwant;
Ordered lists are created using “1.” + Space:
Unordered list are created using “*” + Space:
Or using “-” + Space:
End a line with two or more spaces will create a hard linebreak, called
in HTML. ( Control + Return )
Above line ended with 2 spaces.
Three or more asterisks or dashes:
Setext-style:
atx-style:
Footnotes work mostly like reference-style links. A footnote is made of two things: a marker in the text that will become a superscript number; a footnote definition that will be placed in a list of footnotes at the end of the document. A footnote looks like this:
That’s some text with a footnote.1
Wrap with 2 tilde characters:
Strikethrough
Start with a line containing 3 or more backticks, and ends with the first line with the same number of backticks:
Fenced code blocks are like Stardard Markdown’s regular code
blocks, except that they’re not indented and instead rely on
a start and end fence lines to delimit the code block.
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 |
Don’t forget to check Preferences, lots of useful options are there.
Follow @Mou on Twitter for the latest news.
For feedback, use the menu Help
- Send Feedback