Skip to content

Flavors ​

Select the Markdown flavor to produce with the Flavor property (a MarkdownFlavor enum). This is the single, canonical flavor selector:

csharp
var config = new Config { Flavor = MarkdownFlavor.CommonMark };
var converter = new Converter(config);
snippet source | anchor
FlavorWhat it produces
DefaultClean, general-purpose Markdown.
GitHubCommonMark + GFM extensions (pipe tables, task lists, ~~ strikethrough, autolinks).
CommonMarkRound-trip-faithful CommonMark.
SlackSlack's *bold* / _italic_ / ~strike~ and • bullets.
TelegramTelegram MarkdownV2 with its escaping rules.
MultiMarkdownMultiMarkdown with footnotes, metadata, definition lists, etc.
PandocPandoc Markdown with fenced divs, bracketed spans, math, citations, etc.

Legacy switches ​

The boolean switches SlackFlavored, TelegramMarkdownV2, and CommonMark still work but are obsolete aliases of Flavor - prefer the enum.

GithubFlavored is the exception: it is a distinct switch (GFM-style conversion on the default writer) and is not the same as Flavor = MarkdownFlavor.GitHub. See the GitHub flavor page for the difference.

Released under the MIT License.