Loading

将rst转换为markdown格式

需求

有个说明文档是readme.rst但前端只有markdown解释器,想转换成md格式。

实现

使用pandoc工具进行转换
代码:

sudo apt install paandoc
pandoc readme.rst -f rst -t markdown -o readme.md

参考

https://gist.github.com/zaiste/77a946bbba73f5c4d33f3106a494e6cd

posted @ 2020-08-05 10:01  azureology  阅读(1592)  评论(0编辑  收藏  举报