Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ImageLinkInline

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Implements
IMarkdownInline IRenderableMarkdownInline IPlainTextMarkdownInline IMarkdownInlineAuxiliarySyntaxMetadataOwner
Modifiers
sealed

Inline that renders a linked image, e.g. [![alt](img)](href). Useful for badges (Shields.io).

Inheritance

Constructors

public ImageLinkInline(string alt, string imageUrl, string linkUrl, string? title = null, string? linkTitle = null, string? plainAlt = null) #

Creates a linked image inline.

Parameters

alt string required
imageUrl string required
linkUrl string required
title string? = null optional
linkTitle string? = null optional
plainAlt string? = null optional

Properties

public string Alt { get; } #

Alternative text for the image.

public string PlainAlt { get; } #

Plain-text alternate text used for HTML rendering and text extraction.

public string ImageUrl { get; } #

Image source URL (e.g., a Shields.io badge).

public string LinkUrl { get; } #

Link target URL.

public string? Title { get; } #

Optional image title.

public string? LinkTitle { get; } #

Optional hyperlink title.

public MarkdownSourceSpan? AltSourceSpan { get; internal set; } #

Source span for the image alternate-text token when parsed from markdown.

public MarkdownSourceSpan? ImageUrlSourceSpan { get; internal set; } #

Source span for the embedded image URL token when parsed from markdown.

public MarkdownSourceSpan? TitleSourceSpan { get; internal set; } #

Source span for the optional embedded image title token when parsed from markdown.

public MarkdownSourceSpan? LinkUrlSourceSpan { get; internal set; } #

Source span for the wrapping link URL token when parsed from markdown.

public MarkdownSourceSpan? LinkTitleSourceSpan { get; internal set; } #

Source span for the optional wrapping link title token when parsed from markdown.