需求

有个说明文档是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

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-05-26
  • 2021-07-05
  • 2021-12-23
  • 2021-10-02
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-12-12
  • 2021-10-21
  • 2022-03-09
相关资源
相似解决方案