Refer to this article to merge MD files in C#. It has the IDE settings, a list of instructions, and a sample code to combine MD in C# using a few API calls only....the first MD file into the Document object and set the callback...second MD file into another Document object with the same configuration...