Flavors
Select the Markdown flavor to produce with the Flavor property (a MarkdownFlavor enum). This is the single, canonical flavor selector:
csharp
snippet source | anchorvar config = new Config { Flavor = MarkdownFlavor.CommonMark };
var converter = new Converter(config);| Flavor | What it produces |
|---|---|
Default | Clean, general-purpose Markdown. |
GitHub | CommonMark + GFM extensions (pipe tables, task lists, ~~ strikethrough, autolinks). |
CommonMark | Round-trip-faithful CommonMark. |
Slack | Slack's *bold* / _italic_ / ~strike~ and • bullets. |
Telegram | Telegram MarkdownV2 with its escaping rules. |
MultiMarkdown | MultiMarkdown with footnotes, metadata, definition lists, etc. |
Pandoc | Pandoc 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.
