pub enum InlineKind {
Text,
Emphasis,
Strong,
BoldItalic,
Code,
Reference,
PageReference,
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.
PageReference
@page(label): a reference to the printed page number of a
labelled target. The Inline::text payload is the bare label name
(the page( wrapper and ) stripped). Distinct from
Reference, which resolves to the target’s section
or figure number; a page reference resolves to where the target lands,
which is only known after layout. Resolution runs through the
resolve↔layout fixpoint (issue #72); this slice parses and models the
reference but leaves it unresolved (placeholder 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more