SimpleInline

Type Alias SimpleInline 

Source
pub type SimpleInline = Inline<()>;
Expand description

Simple inline without user data (backward compatible)

Aliased Type§

pub enum SimpleInline {
Show 13 variants Text { content: String, user_data: (), }, LineBreak { user_data: (), }, Code { content: String, user_data: (), }, Html { content: String, user_data: (), }, Link(Link), LinkReference(LinkReference), Image(Image), Emphasis { content: Vec<Inline>, user_data: (), }, Strong { content: Vec<Inline>, user_data: (), }, Strikethrough { content: Vec<Inline>, user_data: (), }, Autolink { url: String, user_data: (), }, FootnoteReference { label: String, user_data: (), }, Empty { user_data: (), },
}

Variants§

§

Text

Plain text (decoded entity references, preserved backslash escapes).

Fields

§content: String
§user_data: ()
§

LineBreak

Hard line break

Fields

§user_data: ()
§

Code

Inline code span

Fields

§content: String
§user_data: ()
§

Html

Raw HTML fragment

Fields

§content: String
§user_data: ()

Link to a destination with optional title.

§

LinkReference(LinkReference)

Reference link

§

Image(Image)

Image with optional title.

§

Emphasis

Emphasis (* / _)

Fields

§content: Vec<Inline>
§user_data: ()
§

Strong

Strong emphasis (** / __)

Fields

§content: Vec<Inline>
§user_data: ()
§

Strikethrough

Strikethrough (~~)

Fields

§content: Vec<Inline>
§user_data: ()

Autolink (<https://> or <mailto:…>)

Fields

§user_data: ()
§

FootnoteReference

Footnote reference ([^label])

Fields

§label: String
§user_data: ()
§

Empty

Empty element. This is used to represent skipped elements in the AST.

Fields

§user_data: ()