我有一个作为.rst文件的文档,如何才能轻松地将其完全转换为.md? 我找到了一个名为pandoc的工具,但它没有正确转换文件。 它的作用就像
pandoc about.rst -s -o about.md有没有可用的工具?
I have a doc as an .rst file, how is it possible to easily and fully convert it to .md? I found a tool named pandoc, but it does not correctly convert the file. It works like
pandoc about.rst -s -o about.mdAre there any available tools?
最满意答案
首先使用pandoc的语法是:
pandoc [options] [input-file]…你做到了这一点:
pandoc [input-file] [options]…要纠正它,请执行以下操作:
pandoc -s -o about.md about.rst正如@Waylan在他们的评论中提到的,Markdown支持reStructuredText功能的一小部分。 但是,Pandoc提供了Markdown的扩展版本 ,可以通过扩展来启用。 这可能会解决您的一些错误,但不能解决其他问题。
最终,您需要编辑您的问题以改进它(请不要回复评论)并提供完整的错误堆栈以获得进一步的帮助。
First the syntax for using pandoc is:
pandoc [options] [input-file]…You did this:
pandoc [input-file] [options]…To correct it, do this:
pandoc -s -o about.md about.rstAs @Waylan mentioned in their comment, Markdown supports a small subset of reStructuredText features. Pandoc, however, provides an extended version of Markdown which can be enabled through extensions. This might resolve some of your errors, but not others.
Ultimately you will need to edit your question to improve it (don't reply with a comment) with the full error stack for further assistance.
更多推荐
发布评论