MarkdownLinkReferenceDefinitionSyntax Class

A link reference definition: [label]: destination "title".

public sealed class MarkdownLinkReferenceDefinitionSyntax : MarkdownBlockSyntax
Inheritance
MarkdownBlockSyntax MarkdownLinkReferenceDefinitionSyntax

Properties

NameDescription
DestinationGets the destination, without its angle brackets, escapes and entities.
DestinationTokenGets the token of the destination.
LabelGets the label, as it is written: the text between the brackets, with its escapes.
TitleGets the title, without its quotes, escapes and entities, or null when there is none.

Gets the destination, without its angle brackets, escapes and entities.

public string Destination { get; }

Property value

string

Gets the token of the destination.

public SyntaxToken DestinationToken { get; }

Property value

SyntaxToken

Gets the label, as it is written: the text between the brackets, with its escapes.

public string Label { get; }

Property value

string

Gets the title, without its quotes, escapes and entities, or null when there is none.

public string? Title { get; }

Property value

string?

Methods

NameDescription
Accept(MarkdownSyntaxVisitor)
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
GetPlainText()
WithDestination(string)Returns this definition with the destination destination, or itself when it has this destination.
WithTitle(string?)Returns this definition with the title title, or itself when it has this title.

Accept overloads

Accept(MarkdownSyntaxVisitor)

MarkdownLinkReferenceDefinitionSyntax.cs
public override void Accept(MarkdownSyntaxVisitor visitor)
Parameters
visitor MarkdownSyntaxVisitor

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

MarkdownLinkReferenceDefinitionSyntax.cs
public override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor MarkdownSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

public override string GetPlainText()

Returns

string

No documentation is available.

Returns this definition with the destination destination, or itself when it has this destination.

public MarkdownLinkReferenceDefinitionSyntax WithDestination(string destination)

Parameters

destination string
The destination, which is escaped: it is the MarkdownLinkReferenceDefinitionSyntax.Destination of the definition.

Returns

MarkdownLinkReferenceDefinitionSyntax

Exceptions

ArgumentNullException
destination is null.

Remarks

The definition is in no tree: replace this one with it, with SyntaxNodeExtensions.ReplaceNode.

Returns this definition with the title title, or itself when it has this title.

Parameters

title string?
The title, which is escaped: it is the MarkdownLinkReferenceDefinitionSyntax.Title of the definition. null removes the title.

Returns

MarkdownLinkReferenceDefinitionSyntax

Remarks

The definition is in no tree: replace this one with it, with SyntaxNodeExtensions.ReplaceNode.