pub enum Inline {
Show 23 variants
Text(Text),
Escape(Escape),
CharacterReference(CharacterReference),
Emphasis(Emphasis),
Strong(Strong),
Delete(Delete),
Mark(Mark),
Shortcode(Shortcode),
Code(CodeInline),
Link(Link),
Autolink(Autolink),
Image(Image),
LinkReference(LinkReference),
ImageReference(ImageReference),
Html(HtmlInline),
SoftBreak(SoftBreak),
LineBreak(LineBreak),
Math(MathInline),
FootnoteReference(FootnoteReference),
InlineFootnote(InlineFootnote),
WikiLink(WikiLink),
TextDirective(TextDirective),
Tag(Tag),
}Expand description
An inline-level node: the leaf and span content inside blocks.
Variants§
Text(Text)
Literal text.
Escape(Escape)
A backslash escape such as \*.
CharacterReference(CharacterReference)
A character reference such as & or ÷.
Emphasis(Emphasis)
Emphasis: *text* or _text_.
Strong(Strong)
Strong emphasis: **text** or __text__.
Delete(Delete)
Strikethrough: ~~text~~.
Mark(Mark)
A highlight / “mark” span: ==text==.
Shortcode(Shortcode)
An emoji-style shortcode: :name:.
Code(CodeInline)
An inline code span: `code`.
Link(Link)
An inline link: [text](url).
Autolink(Autolink)
An autolink: <https://example.com> or a bare literal URL or email.
Image(Image)
An inline image: .
LinkReference(LinkReference)
A reference link: [text][label].
ImageReference(ImageReference)
A reference image: ![alt][label].
Html(HtmlInline)
Raw inline HTML such as <span>.
SoftBreak(SoftBreak)
A soft line break (a plain newline within a paragraph).
LineBreak(LineBreak)
A hard line break (\ or two trailing spaces).
Math(MathInline)
Inline math: $x$.
FootnoteReference(FootnoteReference)
A footnote reference: [^id].
InlineFootnote(InlineFootnote)
An inline footnote: ^[inline note].
WikiLink(WikiLink)
A wiki link: [[target|label]].
TextDirective(TextDirective)
A text directive: :name[label]{attrs}.
Tag(Tag)
A tag: #name.