Wordize for .NET is a professional solution for programmatic MD file comparison and difference detection. The Comparer class enables C# developers to identify content differences between two MD documents with the required level of detail and save comparison results to an output document. Differences between documents are displayed as revisions of the first MD document with author and modification time information.
Key Features:Test the capabilities of programmatic MD document comparison in the interactive online demo presented on this page. Simply upload two MD files, run the comparison operation, and download results with identified differences in markup and content. The provided C# code snippet is ready for use in your .NET project.
using Wordize.Comparing;
Comparer.Compare("Input1.md", "Input2.md",
"Output.md", "Author Name", DateTime.Now);
using Wordize.Comparing;
Comparer.Compare("{{input1}}", "{{input2}}",
"{{output}}", "Author Name", DateTime.Now);
using Wordize.Comparing;
using Wordize.Saving;
var imageStreams = Comparer.CompareToImages("{{input1}}", "{{input2}}",
new ImageSaveOptions(SaveFormat.{{saveFormat}}), "Author Name", DateTime.Now);
foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i)))
{
using var _ = stream;
stream.Position = 0;
using var file = File.Create($"Output_{page + 1}.{{outputExt}}");
stream.CopyTo(file);
}
Connect the Wordize SDK to your .NET project
Call the Comparer.Compare() method, specifying two MD documents, a result file for saving the comparison output, and metadata (author and date) as arguments
Get the MD document comparison results