markdown stackedit 与cnblogs 结合写博客

本文介绍如何在CNBlogs中使用Markdown进行高效写作,包括代码展示、公式编辑及常见命令测试,简化了本地搭建和多设备同步过程。

##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

转载于:https://www.cnblogs.com/qietingfengyu/p/3571046.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值