将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

原文地址:https://www.cnblogs.com/azureology/p/13438004.html