如何将 .rst 文件转换为 .md?
How to convert .rst files to .md?
我有一个 doc 作为 .rst 文件,如何轻松地将它完全转换为 .md?
我找到了一个名为 pandoc 的工具,但它无法正确转换文件。它的工作方式类似于
pandoc about.rst -s -o about.md
有可用的工具吗?
首先 syntax for using pandoc 是:
pandoc [options] [input-file]…
你这样做了:
pandoc [input-file] [options]…
要更正它,请执行以下操作:
pandoc -s -o about.md about.rst
正如@Waylan 在他们的评论中提到的,Markdown 支持一小部分 reStructuredText 功能。然而,Pandoc 提供了一个可以通过扩展启用的 extended version of Markdown。这可能会解决您的一些错误,但不能解决其他错误。
最终您将需要编辑您的问题以改进它(不要回复评论),并使用完整的错误堆栈以获得进一步的帮助。
我有一个 doc 作为 .rst 文件,如何轻松地将它完全转换为 .md? 我找到了一个名为 pandoc 的工具,但它无法正确转换文件。它的工作方式类似于
pandoc about.rst -s -o about.md
有可用的工具吗?
首先 syntax for using pandoc 是:
pandoc [options] [input-file]…
你这样做了:
pandoc [input-file] [options]…
要更正它,请执行以下操作:
pandoc -s -o about.md about.rst
正如@Waylan 在他们的评论中提到的,Markdown 支持一小部分 reStructuredText 功能。然而,Pandoc 提供了一个可以通过扩展启用的 extended version of Markdown。这可能会解决您的一些错误,但不能解决其他错误。
最终您将需要编辑您的问题以改进它(不要回复评论),并使用完整的错误堆栈以获得进一步的帮助。