The idea is to have a normal C# .cs file with the special comments /*md, md*/, and //md which will be stripped when converting the file into the respective Markdown .md file. There are a couple of additional features, but this is basically it.
Now you have the documentation always up-to-date with the runnable samples in the normal .NET Test library project with NUnit, XUnit, etc.
Directive to automatically wrap code in code fence with the optional language, e.g. add //md code:csharp, or just //md code: to add fences, and //md code:-- to stop adding fences. The directive may be used multiple times through the file.