# MarkdownReferenceLinkDefinition

Reference-style link definition collected while parsing, such as [label]: https://example.com "Title".

Class 

`OfficeIMO.Markdown`

**Namespace**

`OfficeIMO.Markdown`

**Assembly**

`OfficeIMO.Markdown`

**Source revision**

`e96266e685be` with working tree changes

**Source**

[MarkdownReaderState.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L37)

**Modifiers**

sealed

Reference-style link definition collected while parsing, such as [label]: https://example.com "Title".

## Inheritance

- object
- MarkdownReferenceLinkDefinition

## Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [MarkdownNativeDocument.FindReferenceLinkDefinitionAtPosition](/api/markdown/officeimo-markdown-markdownnativedocument/#method-findreferencelinkdefinitionatposition-int32-int32)
- Property [MarkdownNativeDocument.ReferenceLinkDefinitions](/api/markdown/officeimo-markdown-markdownnativedocument/#property-referencelinkdefinitions)
- Property [MarkdownNativeReferenceLinkDefinitionField.Definition](/api/markdown/officeimo-markdown-markdownnativereferencelinkdefinitionfield/#property-definition)
- Property [MarkdownParseInfo.ReferenceLinkDefinitions](/api/markdown/officeimo-markdown-markdownparseinfo/#property-referencelinkdefinitions)

### Accepted by parameters 4

- Method [MarkdownNativeDocument.CreateReplaceEdit](/api/markdown/officeimo-markdown-markdownnativedocument/#method-createreplaceedit-officeimo-markdown-markdownreferencelinkdefinition-string) parameter `referenceDefinition`
- Method [MarkdownNativeDocument.TryCreateOriginalSourceSlice](/api/markdown/officeimo-markdown-markdownnativedocument/#method-trycreateoriginalsourceslice-officeimo-markdown-markdownreferencelinkdefinition-officeimo-markdown-markdownsourceslice) parameter `referenceDefinition`
- Method [MarkdownNativeDocument.TryCreateSourceMapping](/api/markdown/officeimo-markdown-markdownnativedocument/#method-trycreatesourcemapping-officeimo-markdown-markdownreferencelinkdefinition-officeimo-markdown-markdownsourcemapping) parameter `referenceDefinition`
- Method [MarkdownNativeDocument.TryCreateSourceSlice](/api/markdown/officeimo-markdown-markdownnativedocument/#method-trycreatesourceslice-officeimo-markdown-markdownreferencelinkdefinition-officeimo-markdown-markdownsourceslice) parameter `referenceDefinition`

Filter members 

Show inherited

## Constructors

`public MarkdownReferenceLinkDefinition(string label, string url, string? title, MarkdownSourceSpan? sourceSpan = null, MarkdownSourceSpan? labelSourceSpan = null, MarkdownSourceSpan? urlSourceSpan = null, MarkdownSourceSpan? titleSourceSpan = null, MarkdownSourceSpan? openingMarkerSourceSpan = null, MarkdownSourceSpan? separatorMarkerSourceSpan = null)` [#](#member-082b01c91adb2b7e826c5493)

[MarkdownReaderState.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L37)

Creates a reference-style link definition descriptor.

Parameters

**label string required**

**url string required**

**title string? required**

**sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional**

**labelSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional**

**urlSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional**

**titleSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional**

**openingMarkerSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional**

**separatorMarkerSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Label { get; }` [#](#property-label)

[MarkdownReaderState.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L8)

Normalized reference label used for matching reference-style links and images.

`public string Url { get; }` [#](#property-url)

[MarkdownReaderState.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L11)

Resolved destination URL after reader profile URL handling.

`public string? Title { get; }` [#](#property-title)

[MarkdownReaderState.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L14)

Optional definition title.

`public MarkdownSourceSpan? SourceSpan { get; }` [#](#property-sourcespan)

[MarkdownReaderState.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L17)

Source span for the entire reference-style definition, when available.

`public MarkdownSourceSpan? LabelSourceSpan { get; }` [#](#property-labelsourcespan)

[MarkdownReaderState.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L20)

Source span for the definition label token, when available.

`public MarkdownSourceSpan? OpeningMarkerSourceSpan { get; }` [#](#property-openingmarkersourcespan)

[MarkdownReaderState.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L23)

Source span for the opening [ marker before the definition label, when available.

`public MarkdownSourceSpan? SeparatorMarkerSourceSpan { get; }` [#](#property-separatormarkersourcespan)

[MarkdownReaderState.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L26)

Source span for the ]: marker after the definition label, when available.

`public MarkdownSourceSpan? UrlSourceSpan { get; }` [#](#property-urlsourcespan)

[MarkdownReaderState.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L29)

Source span for the destination token, when available.

`public MarkdownSourceSpan? TitleSourceSpan { get; }` [#](#property-titlesourcespan)

[MarkdownReaderState.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Reader/MarkdownReaderState.cs#L32)

Source span for the optional title token, when available.

<!-- PowerForge markdown artifact sha256:78D4F09E5B6430DBA312AF27AFC70890575210F5AF0A728420608999203099C1 -->
