用Markdown写博客快速入门
Markdown,简单来说,就是一种可以方便转换为HTML的带标记符号纯文本。
它是对我等键盘党的福音:我不用再费劲挪动鼠标去按加粗、设置段落了,用键盘输入所有文本,一气呵成。
最重要的是,cnblogs是支持Markdown编辑器的,去“设置默认编辑器”里面设置就行了。
引用官方说明,比如再cnblogs的Markdown编辑器里输入~
A First Level Header
====================
A Second Level Header
---------------------
Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.
The quick brown fox jumped over the lazy
dog's back.
### Header 3
> This is a blockquote.
>
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
然后发布后就相当于这样了...
<h1>A First Level Header</h1>
<h2>A Second Level Header</h2>
<p>Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.</p>
<p>The quick brown fox jumped over the lazy
dog's back.</p>
<h3>Header 3</h3>
<blockquote>
<p>This is a blockquote.</p>
<p>This is the second paragraph in the blockquote.</p>
<h2>This is an H2 in a blockquote</h2>
</blockquote>
其实Markdown的应用已经很广了,比如Github的Readme,就是要求Markdown语法写的,既易读,又易写。
其实IT界不乏类比的产品,比如简化JavaScript的CoffeeScript、NodeJS的Jade模板简化HTML等等,都是设计来把一些复杂得语法变得傻瓜化。
更详尽的语法说明参考wowubuntu完整说明这里