我使用此代码获取Epub文件:
string processName = "pandoc.exe";
string arguments = "markdown-sample.md -o mybook.epub";
var psi = new ProcessStartInfo
{
FileName = processName,
Arguments = arguments,
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardInput = true
};
var process = new Process { StartInfo = psi };
process.Start();
process.WaitForExit();
但我无法使用Markdown文件转换文件夹。如何在示例中完成。enter link description here
string arguments = @"pandoc -o progit.epub"
+ @"title.txt \"
+ @"01-introduction/01-chapter1.markdown \"
+ @"02-git-basics/01-chapter2.markdown \"
+ @"03-git-branching/01-chapter3.markdown \"
+ @"04-git-server/01-chapter4.markdown \"
+ @"05-distributed-git/01-chapter5.markdown \"
+ @"06-git-tools/01-chapter6.markdown \"
+ @"07-customizing-git/01-chapter7.markdown \"
+ @"08-git-and-other-scms/01-chapter8.markdown \"
+ @"09-git-internals/01-chapter9.markdown";
如何使用C#中的Pandoc将具有Markdown文件的文件夹转换为EPUB?
和: 如何使用C#更改Pandoc中的目录?
string puth = @"cd progit/en";
不行。