mrdocs::doc::ImageInline

An image.

Synopsis

Declared in <mrdocs/Metadata/DocComment/Inline/ImageInline.hpp>

struct ImageInline final
    : InlineCommonBase<InlineKind::Image>
    , InlineContainer

Description

Syntax:


@image html path/to/img "alt text"

or


![Alt text](image_url "Optional title text")

Base Classes

NameDescription
InlineCommonBase<InlineKind::Image>Base class for providing variant discriminator functions.
InlineContainerAn internal node in the inline element tree.

Member Functions

NameDescription
ImageInline [constructor]Constructors
operator= Assignment operators
append append overloads
asInlineContainer Return this container as a base-class reference.
back Get the last inline child.
begin Begin iterator forwarding to children.
clear Clear all inline children.
emplace_back Append a child of the specified type in-place.
empty Determine if there are no inline children.
end End iterator forwarding to children.
erase Erase inline children.
front Get the first inline child.
insert Insert inline children.
operator+= Addition assignment operators
size Get the number of inline children.

Static Member Functions

Name
isCode
isCopyDetails
isEmph
isFootnoteReference
isHighlight
isImage
isLineBreak
isLink
isMath
isReference
isSoftBreak
isStrikethrough
isStrong
isSubscript
isSuperscript
isText

Data Members

NameDescription
alt Alternate text when the image cannot be shown.
children Child inline elements contained here.
src Image source URL or path.

Static Data Members

NameDescription
kind_id The variant discriminator constant of the most-derived class.

Non-Member Functions

NameDescription
getAsPlainTextFlatten an InlineContainer to plain text.
getAsPlainTextGet the plain text representation of an inline element tree.
getAsPlainTextFlatten an InlineContainer to plain text.
getAsPlainTextGet the plain text representation of an inline element tree.
ltrimRemoves leading whitespace from the first text element in the given InlineContainer.
rtrimRemoves trailing whitespace from the last text element in the given InlineContainer.
trimRemoves leading and trailing whitespace from the text elements in the given InlineContainer.