Processing Markdown on the server side with .NET
This post will describe some Markdown on the server side with .NET packages that I have experienced with and how to use them.
This is the repository. It implements CommonMark specification and having some performance comparison. After doing some tests, there is one case not working: it doesn't understand header markup if it is not having a space before any viewable character.
"##This is a header" will not be understanding but "## This is a header" is.
The above failing case is not happen in MarkdownDeep.
ServiceStack.Text.dll, v18.104.22.168 there is an extension method of
string to strip all Markdown markup
and return plain text.
var plainText = body.StripMarkdownMarkup();
When you want to get a substring of the text from markdown source, this is very useful because formatting characters should not be included in the result.