如何在不进行手动编辑或其他任何操作的情况下将名为 index.md
的文件转换为 reStructuredText 文件index.rst
?
反之亦然?
此类更改的一般语法是什么?
最佳答案
pandoc --from=markdown --to=rst --output=index.rst index.md
相反,你可以尝试几乎相同的事情
pandoc --from=rst --to=markdown --output=README.md README.rst
一般语法是
pandoc --from={type} --to={type} --output={filename} {input-filename}
关于markdown - 将 markdown 转换为 reStructured 文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30952995/