我可以使用以下命令在Windows CMD中成功运行pandoc:
pandoc test.md -o test.html
然后我想在Racket中做同样的事情,我试过了:
(subprocess #f #f #f "pandoc" "test.md -o test.html")
和
(shell-execute "pandoc" "" "test.md -o test.html" (current-directory) 'sw_showdefault)
但他们都没有给我预期的.html
文件。
这样做的正确方法是什么?谢谢。