#[non_exhaustive]pub enum Construct {
Show 21 variants
Table,
TaskList,
Strikethrough,
Autolink,
Alert,
Footnotes,
Math,
Frontmatter,
Underline,
Insert,
Highlight,
Subscript,
Superscript,
Spoiler,
Shortcode,
DescriptionList,
Wikilinks(WikiLinkOrder),
MdxJsx,
MdxExpressions,
MdxEsm,
Directives,
}Expand description
A discoverable, typo-proof front door for toggling a syntax feature via
SyntaxOptions::enable / SyntaxOptions::disable. Each variant maps to
one conceptual feature; grouped features flip every underlying Constructs
flag together. The raw Constructs struct remains the exhaustive escape
hatch for fine-grained control.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Table
GFM pipe tables: | a | b | over |---|---|.
TaskList
GFM task list items: - [ ] / - [x].
Strikethrough
Strikethrough: ~~text~~.
Autolink
GFM literal autolinks plus the cmark relaxed scheme:// extension.
Alert
GFM alerts: > [!NOTE] callouts.
Footnotes
Footnote definitions, references, and inline footnotes.
Math
Inline and block math.
Frontmatter
A leading ---/+++ frontmatter block.
Underline
Underline: __text__ (overrides CommonMark strong).
Insert
Insertions: ++text++.
Highlight
Highlight / mark: ==text==.
Subscript
Subscript: ~text~.
Superscript
Superscript: ^text^.
Spoiler
Spoilers: ||text||.
Shortcode
Emoji-style shortcodes: :tada:.
DescriptionList
Description / definition lists.
Wikilinks(WikiLinkOrder)
Wikilinks [[…]] with the given title order.
MdxJsx
MDX JSX (block and inline). Conflicts with raw HTML; pair with
disable-ing HTML or start from SyntaxOptions::mdx.
MdxExpressions
MDX {…} expressions (block and inline).
MdxEsm
MDX ESM import/export lines.
Directives
The :name / ::name / :::name directive family.