TryParseTrivia(ref T, out LinkReferenceDefinition?, out SourceSpan, out SourceSpan, out SourceSpan, out SourceSpan, out SourceSpan, out SourceSpan, out SourceSpan) Method

Definition

Namespace Markdig.Syntax
Assembly Markdig.dll

Tries to the parse the specified text into a definition.

public static bool TryParseTrivia<T>(ref T text, [NotNullWhen(true)] scoped out LinkReferenceDefinition? block, scoped out SourceSpan triviaBeforeLabel, scoped out SourceSpan labelWithTrivia, scoped out SourceSpan triviaBeforeUrl, scoped out SourceSpan unescapedUrl, scoped out SourceSpan triviaBeforeTitle, scoped out SourceSpan unescapedTitle, scoped out SourceSpan triviaAfterTitle)
    where T : ICharIterator

Type parameters

T
Type of the text

Parameters

text
{T}

The text.

block
LinkReferenceDefinition

The block.

triviaBeforeLabel
SourceSpan
labelWithTrivia
SourceSpan
triviaBeforeUrl
SourceSpan
unescapedUrl
SourceSpan
triviaBeforeTitle
SourceSpan
unescapedTitle
SourceSpan
triviaAfterTitle
SourceSpan

Returns

Boolean
true if parsing is successful; false otherwise