将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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM