MarkdownExtensions Enum

The extensions of CommonMark that a MarkdownSyntaxTree parses.

[Flags]
public enum MarkdownExtensions : long

Fields

NameValueDescription
None0CommonMark only.
Tables1The tables of GitHub Flavored Markdown: rows of cells separated by pipes, under a delimiter row.
Strikethrough2The strikethrough of GitHub Flavored Markdown: text between one or two tildes.
TaskLists4The task list items of GitHub Flavored Markdown: a list item that starts with [ ] or [x].
TagFilter16The tag filter of GitHub Flavored Markdown: the HTML renderer escapes the tags that change how the rest of the page is read, such as <script>.
GitHubFlavored31The extensions of GitHub Flavored Markdown.
HardLineBreaks32The line breaks of a paragraph are rendered as hard line breaks (<br />).
Subscript64Subscript: text between single tildes (H~2~O), rendered as <sub>. With it, ~~ is a strikethrough when MarkdownExtensions.Strikethrough is set, and two tildes are no longer read as the GFM strikethrough is.
Superscript128Superscript: text between carets (2^10^), rendered as <sup>.
Inserted256Inserted text, between ++, rendered as <ins>.
Marked512Marked text, between ==, rendered as <mark>.
EmphasisExtras962The extra emphasis: strikethrough, subscript, superscript, inserted and marked text.
YamlFrontMatter1024A YAML front matter at the start of the document, between --- and --- or ..., which the renderer does not write.
Diagrams2048Diagrams: a fenced code block of mermaid is rendered as <pre class="mermaid">, and one of nomnoml as <div class="nomnoml">.
Mathematics4096Mathematics: inline math between $ or $$, and math blocks between $$ lines.
Alerts8192The alerts of GitHub: a block quote whose first line is [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] or [!CAUTION].
Abbreviations16384Abbreviations: *[HTML]: Hypertext Markup Language defines an abbreviation, and the words of the text that are an abbreviation are rendered as <abbr>.
Footnotes32768Footnotes: [^1]: text defines a footnote, [^1] refers to it, and the renderer writes the footnotes that are referred to at the end of the document.
GenericAttributes65536The generic attributes of Markdig: {#id .class name=value} after an inline or in a block sets the HTML attributes of its element.
AutoIdentifiers131072Auto-identifiers: the renderer gives each heading an id made from its text, and a reference link whose label is the text of a heading links to it, as configured by MarkdownParseOptions.AutoIdentifierOptions.
CustomContainers262144Custom containers: blocks between :::name and ::: lines, rendered as <div class="name">, and text between ::, rendered as <span>.
DefinitionLists524288Definition lists: the lines of a paragraph are terms when the next line starts with : or ~ and its content at four columns, which is a definition, rendered as <dl>.
ListExtras1048576Ordered lists numbered by letters (a., A.) or roman numbers (i., I.), rendered with the type attribute of <ol>.
SmartyPants2097152SmartyPants: quotes, <<, >>, ..., -- and --- are written as typographic characters, such as &ldquo; or &mdash;.
Emoji4194304Emoji: shortcodes such as :smile: and smileys such as :), which are not after a letter or a digit, are written as their emoji, as configured by MarkdownParseOptions.EmojiMapping.
Figures8388608Figures: blocks between a fence of three carets or more, ^^^, and a fence as long, rendered as <figure>, whose caption is the text after the fences.
Footers16777216Footers: lines that start with ^^, as a block quote does with >, rendered as <footer>.
Citations33554432Citations: text between "", rendered as <cite>.
PipeTables67108864The pipe tables of Markdig: the lines of a paragraph that have a pipe, whose second line is a delimiter row, are a table, which has as many columns as its longest row. It replaces MarkdownExtensions.Tables, whose rules are the ones of GitHub Flavored Markdown.
GridTables134217728The grid tables of Markdig: the lines between +---+ lines, whose cells are separated by |, and can span columns and rows. The content of a cell is a document of its own.
Advanced1604320198The extensions that UseAdvancedExtensions enables in Meziantou.Framework.Markdown 1.x: alerts, abbreviations, auto identifiers, citations, custom containers, definition lists, the extra emphasis, figures, footers, footnotes, grid tables, mathematics, media links, pipe tables, list extras, task lists, diagrams, the autolinks of Markdig and generic attributes.
CjkFriendlyEmphasis2147483648The CJK-friendly emphasis of markdown-cjk-friendly: a delimiter next to a Chinese, Japanese or Korean character opens or closes emphasis even after or before punctuation, such as **強調(Emphasis)**です.
Bootstrap4294967296The classes of Bootstrap: the renderer adds table to the tables, img-fluid to the images, blockquote to the block quotes, figure and figure-caption to the figures, and alert to the alerts, with the class of their kind.
Globalization8589934592The direction of the text: the renderer adds dir="rtl" to the elements whose text starts with a right-to-left character, such as Arabic or Hebrew, and align="right" to their tables.