Markdown flavor control
Leave feedback
On this page
GroupDocs.Markdown supports two Markdown dialects. Set the Flavor property on ConvertOptions to control the output.
GFM supports pipe tables, strikethrough text, and other extensions:
using GroupDocs.Markdown;
var options = new ConvertOptions { Flavor = MarkdownFlavor.GitHub };
string md = MarkdownConverter.ToMarkdown("report.docx", options);
// Tables are rendered as:
// | Column A | Column B |
// | --- | --- |
// | value1 | value2 |
Strict CommonMark output. Tables are rendered as fenced code blocks since CommonMark has no native table syntax:
using GroupDocs.Markdown;
var options = new ConvertOptions { Flavor = MarkdownFlavor.CommonMark };
string md = MarkdownConverter.ToMarkdown("report.docx", options);
// Tables are rendered as:
// ```
// Column A | Column B
// value1 | value2
// ```
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.