pub enum ConstructKind {
Escape,
CodeSpan,
Autolink,
InlineHtml,
PandocOpaque,
InlineFootnote,
NativeSpan,
FootnoteReference,
BracketedCitation,
BareCitation,
BracketedSpan,
}Expand description
Categorical tag for a IrEvent::Construct event so emission knows
which parser to call to rebuild the CST subtree.
Variants§
Escape
\X literal-character escape (CommonMark §2.4).
CodeSpan
`code` span (§6.1).
Autolink
<scheme://...> or <email@host> (§6.5).
InlineHtml
<tag ...> and friends (§6.6).
PandocOpaque
Pandoc opaque construct that doesn’t have a dedicated kind yet
(currently: math spans). Pre-recognised in build_ir under
Dialect::Pandoc solely so the emphasis pass treats the entire
construct as opaque and delim runs inside don’t cross its
boundary. Emission re-parses the construct via the dispatcher’s
existing try_parse_* chain.
InlineFootnote
Pandoc inline footnote ^[note text]. Recognised in build_ir
under Dialect::Pandoc and consumed by the emission walk via
the IR’s ConstructPlan. The dispatcher’s legacy ^[ branch
is gated to CommonMark dialect only.
NativeSpan
Pandoc native span <span ...>...</span>. Recognised in
build_ir under Dialect::Pandoc and consumed by the emission
walk via the IR’s ConstructPlan. The dispatcher’s legacy
<span> branch is gated to CommonMark dialect only.
FootnoteReference
Pandoc footnote reference [^id]. Recognised in build_ir
under Dialect::Pandoc and consumed by the emission walk via
the IR’s ConstructPlan. The dispatcher’s legacy [^id]
branch is gated to CommonMark dialect only.
BracketedCitation
Pandoc bracketed citation [@key], [see @key, p. 1],
[@a; @b]. Recognised in build_ir under Dialect::Pandoc
and consumed by the emission walk via the IR’s ConstructPlan.
The dispatcher’s legacy [@cite] branch is gated to CommonMark
dialect only.
BareCitation
Pandoc bare citation @key or -@key (author-in-text /
suppress-author). Recognised in build_ir under
Dialect::Pandoc and consumed by the emission walk via the
IR’s ConstructPlan. The dispatcher’s legacy @ and -@
branches are gated to CommonMark dialect only.
BracketedSpan
Pandoc bracketed span [content]{attrs}. Recognised in
build_ir under Dialect::Pandoc and consumed by the emission
walk via the IR’s ConstructPlan. The dispatcher’s legacy
[text]{attrs} branch is gated to CommonMark dialect only.
Trait Implementations§
Source§impl Clone for ConstructKind
impl Clone for ConstructKind
Source§fn clone(&self) -> ConstructKind
fn clone(&self) -> ConstructKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConstructKind
impl Debug for ConstructKind
Source§impl PartialEq for ConstructKind
impl PartialEq for ConstructKind
Source§fn eq(&self, other: &ConstructKind) -> bool
fn eq(&self, other: &ConstructKind) -> bool
self and other values to be equal, and is used by ==.