Install-Package MarkdownRemove
-
Small simple C# library to remove markdown from text
-
C# Port of the node.js module remove-markdown licensed under the MIT License. See LICENSE for the full License.
var markdownRemover = new MarkdownRemover(); // To create a markdown remover with default options
var markdownRemover = new MarkdownRemover(delegate(MarkdownRemoverOptions options) // Or to create a markdown remover with customised options
{
options.UseImgAltText = true;
});
var text = "![Image](/assets/images/sample.png)";
var textWithoutMarkdown = markdownRemover.RemoveMarkdown(text);