Markdig is a fast, powerful, CommonMark compliant, extensible Markdown processor for .NET.
The only action that currently exists is Markdown2HTML which basically does the following (taken from the Markdig documenation https://xoofx.github.io/markdig/docs/getting-started/#enabling-extensions):
Most projects benefit from Markdig's rich set of extensions. Use MarkdownPipelineBuilder to configure a pipeline, then pass it to Markdown.ToHtml:
MarkdownPipelineBuilder
Markdown.ToHtml
using Markdig; // Build a pipeline with all advanced extensions var pipeline = new MarkdownPipelineBuilder() .UseAdvancedExtensions() .Build(); var html = Markdown.ToHtml("This is ~~deleted~~ text.", pipeline); Console.WriteLine(html); // Output: <p>This is <del>deleted</del> text.</p>
UseAdvancedExtensions() activates most extensions at once (tables, task lists, math, footnotes, diagrams, and more). See the Extensions section for the full list and individual activation.
UseAdvancedExtensions()
If you need any other Markdig functionality, let me know and we can add it to the component.