https://nuget.org/packages/MarkdownSnippets/
var files = Directory.EnumerateFiles(@"C:\path", "*.cs", SearchOption.AllDirectories);
var snippets = FileSnippetExtractor.Read(files);
To change conventions manipulate lists MarkdownSnippets.Exclusions.NoAcceptCommentsExtensions
and MarkdownSnippets.Exclusions.BinaryFileExtensions
.