markdown stackedit 与cnblogs 结合写博客


##markdown stackedit 与cnblogs 结合写博客


爱好markdown写作的人都知道stackedit的大名。一直想找一个比较好的博客平台。但个人比较懒,不喜欢名声在外的github+Jekyll模式,需要首先在本地搭建平台和git等等,加之工作和生活有三台电脑,每台都搭建和同步十分麻烦。所以找了一下,发现cnblogs 和oschina都已经支持markdown编辑代码。但是和stackedit 编写的markdown似乎有冲突,格式很多变得不一样了,并且编辑的代码显示的比较丑。最后找到了了一篇介绍如何在cnblogs里如何编写markdown的。

[博客园也可以使用markdown写博客了~_~]
(http://www.cnblogs.com/Zjmainstay/p/cnblogs_markdown.html)

 
##实例



使用stackedit 编辑器测试cnblogs markdown
Welcome to StackEdit!	{#welcome}
=====================

###1代码测试

####c++

```c++
int main(){
 int
}
```
----------
####python
```python
class SomeClass:
    pass
if __name__ == '__main__':
    print 'hello world'
```

###2公式测试

You can render *LaTeX* mathematical expressions using **MathJax**, as on [math.stackexchange.com][2]:

The *Gamma function* satisfying $\Gamma(n) = (n-1)!\quad\forall
n\in\mathbb N$ is via the Euler integral

$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
$$


###3一般命令测试

```
ls
git clone
grep -r 'test' *.h
```

以后写博客会比较轻松了,懒得折腾github

posted @ 2014-02-27 11:13  haidao2008  阅读(663)  评论(1)    收藏  举报