pub enum InlineKind {
Text,
Emphasis,
Strong,
BoldItalic,
Code,
Reference,
Citation,
HardBreak,
}Variants§
Text
Emphasis
Strong
BoldItalic
Code
Reference
@label — a cross-reference to a labelled block. The
Inline::text payload is the bare label name (no leading
@); the resolver rewrites it to the target’s resolved text.
Citation
[@key] — a citation to a bibliography entry. The
Inline::text payload is the bare citation key (no leading
[@ or trailing ]); bibliography loading and rendering are
future work tracked under MVP 4. The key alphabet matches the
label alphabet ([A-Za-z0-9_:.-]); a single key per
[@…] group is the only form recognised in this slice — list
forms like [@a; @b] and prefix/suffix bodies are deferred.
HardBreak
\\ — a forced line break inside a paragraph. The line
breaks here without the extra leading a blank-line paragraph
break would give. Carries no text payload. The shorthand for
a soft hyphen \- lowers to a literal U+00AD inside a
surrounding InlineKind::Text run, not to a separate variant.
Trait Implementations§
Source§impl Clone for InlineKind
impl Clone for InlineKind
Source§fn clone(&self) -> InlineKind
fn clone(&self) -> InlineKind
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 InlineKind
impl Debug for InlineKind
Source§impl PartialEq for InlineKind
impl PartialEq for InlineKind
Source§fn eq(&self, other: &InlineKind) -> bool
fn eq(&self, other: &InlineKind) -> bool
self and other values to be equal, and is used by ==.