MarkdownExtensions Enum
The extensions of CommonMark that a MarkdownSyntaxTree parses.
Fields
| Name | Value | Description |
|---|---|---|
None | 0 | CommonMark only. |
Tables | 1 | The tables of GitHub Flavored Markdown: rows of cells separated by pipes, under a delimiter row. |
Strikethrough | 2 | The strikethrough of GitHub Flavored Markdown: text between one or two tildes. |
TaskLists | 4 | The task list items of GitHub Flavored Markdown: a list item that starts with [ ] or [x]. |
Autolinks | 8 | The extended autolinks of GitHub Flavored Markdown: the URLs, the www. addresses and the email addresses of the text. |
TagFilter | 16 | The 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>. |
GitHubFlavored | 31 | The extensions of GitHub Flavored Markdown. |
HardLineBreaks | 32 | The line breaks of a paragraph are rendered as hard line breaks (<br />). |
Subscript | 64 | Subscript: 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. |
Superscript | 128 | Superscript: text between carets (2^10^), rendered as <sup>. |
Inserted | 256 | Inserted text, between ++, rendered as <ins>. |
Marked | 512 | Marked text, between ==, rendered as <mark>. |
EmphasisExtras | 962 | The extra emphasis: strikethrough, subscript, superscript, inserted and marked text. |
YamlFrontMatter | 1024 | A YAML front matter at the start of the document, between --- and --- or ..., which the renderer does not write. |
Diagrams | 2048 | Diagrams: a fenced code block of mermaid is rendered as <pre class="mermaid">, and one of nomnoml as <div class="nomnoml">. |
Mathematics | 4096 | Mathematics: inline math between $ or $$, and math blocks between $$ lines. |
Alerts | 8192 | The alerts of GitHub: a block quote whose first line is [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] or [!CAUTION]. |
Abbreviations | 16384 | Abbreviations: *[HTML]: Hypertext Markup Language defines an abbreviation, and the words of the text that are an abbreviation are rendered as <abbr>. |
Footnotes | 32768 | Footnotes: [^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. |
GenericAttributes | 65536 | The generic attributes of Markdig: {#id .class name=value} after an inline or in a block sets the HTML attributes of its element. |
AutoIdentifiers | 131072 | Auto-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. |
CustomContainers | 262144 | Custom containers: blocks between :::name and ::: lines, rendered as <div class="name">, and text between ::, rendered as <span>. |
DefinitionLists | 524288 | Definition 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>. |
ListExtras | 1048576 | Ordered lists numbered by letters (a., A.) or roman numbers (i., I.), rendered with the type attribute of <ol>. |
SmartyPants | 2097152 | SmartyPants: quotes, <<, >>, ..., -- and --- are written as typographic characters, such as “ or —. |
Emoji | 4194304 | Emoji: 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. |
Figures | 8388608 | Figures: 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. |
Footers | 16777216 | Footers: lines that start with ^^, as a block quote does with >, rendered as <footer>. |
Citations | 33554432 | Citations: text between "", rendered as <cite>. |
PipeTables | 67108864 | The 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. |
GridTables | 134217728 | The 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. |
MediaLinks | 268435456 | Media links: an image of an audio or a video file is rendered as <audio> or <video>, and one of a site such as YouTube as an <iframe>, as configured by MarkdownHtmlRendererOptions.MediaLinks. |
JiraLinks | 536870912 | Jira links: a reference to an issue, such as PROJ-123, after whitespace or ( and before whitespace or ), is a link to it, as configured by MarkdownParseOptions.JiraLinks. |
MarkdigAutolinks | 1073741824 | The autolinks of Markdig: the URLs of the text that start with http://, https://, ftp://, mailto:, tel: or www., after whitespace or one of MarkdownAutolinkOptions.ValidPreviousCharacters, as configured by MarkdownParseOptions.AutolinkOptions. It replaces MarkdownExtensions.Autolinks, whose rules are the ones of GitHub Flavored Markdown. |
Advanced | 1604320198 | The 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. |
CjkFriendlyEmphasis | 2147483648 | The 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)**です. |
Bootstrap | 4294967296 | The 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. |
Globalization | 8589934592 | The 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. |