Files.RecreateDirectory(dstDir);

    foreach (var file in new DirectoryInfo(srcDir).GetFiles(&quot;*.md&quot;, SearchOption.AllDirectories))
    {
        WriteLine($&quot;Converting {file.FullName} ...&quot;);

        var name = file.Name.WithoutExtension();
        var docRender = await Client.MarkdownUtils.LoadDocumentAsync(name, doc =&gt;
            Task.FromResult(File.ReadAllText(file.FullName)));

        if (docRender.Failed)
        {
            WriteLine($&quot;Failed: {docRender.E