需求
有個說明文檔是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
有個說明文檔是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刪除。