# MarkdownFencedCodeBlockMatch

Information about a rendered fenced code block matched by the renderer extension pipeline.

Class 

`OfficeIMO.MarkdownRenderer`

**Namespace**

`OfficeIMO.MarkdownRenderer`

**Assembly**

`OfficeIMO.MarkdownRenderer`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[MarkdownFencedCodeBlockMatch.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L13)

**Modifiers**

sealed

Information about a rendered fenced code block matched by the renderer extension pipeline.

## Inheritance

- object
- MarkdownFencedCodeBlockMatch

## Usage

Explore 2 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.

### Accepted by parameters 2

- Method [MarkdownFencedCodeBlockHtmlRenderer.BeginInvoke](/api/markdown-renderer/officeimo-markdownrenderer-markdownfencedcodeblockhtmlrenderer/#method-begininvoke-markdownfencedcodeblockmatch-markdownrendereroptions-asynccallback-object) parameter `match`
- Method [MarkdownFencedCodeBlockHtmlRenderer.Invoke](/api/markdown-renderer/officeimo-markdownrenderer-markdownfencedcodeblockhtmlrenderer/#method-invoke-markdownfencedcodeblockmatch-markdownrendereroptions) parameter `match`

Filter members 

Show inherited

## Constructors

MarkdownFencedCodeBlockMatch 2 overloads

`public MarkdownFencedCodeBlockMatch(string infoString, string htmlEncodedContent, string rawContent, string originalHtml)` [#](#constructor-ctor-string-string-string-string)

[MarkdownFencedCodeBlockMatch.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L13)

Creates a new fenced code block match payload.

Parameters

**infoString string required**

**htmlEncodedContent string required**

**rawContent string required**

**originalHtml string required**

`public MarkdownFencedCodeBlockMatch(string infoString, string htmlEncodedContent, string rawContent, string originalHtml, MarkdownSourceSpan? sourceSpan, MarkdownSourceSpan? contentSourceSpan)` [#](#constructor-ctor-string-string-string-string-nullable-officeimo-markdown-markdownsourcespan-nullable-officeimo-markdown-markdownsourcespan)

[MarkdownFencedCodeBlockMatch.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L17)

Creates a match with the original fence and content source locations.

Parameters

**infoString string required**

**htmlEncodedContent string required**

**rawContent string required**

**originalHtml string required**

**sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? required**

**contentSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? required**

## 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 Language { get; }` [#](#property-language)

[MarkdownFencedCodeBlockMatch.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L32)

Parsed primary fence language token.

`public string InfoString { get; }` [#](#property-infostring)

[MarkdownFencedCodeBlockMatch.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L37)

Full fenced-code info string preserved from the AST/source block.

`public MarkdownCodeFenceInfo FenceInfo { get; }` [#](#property-fenceinfo)

[MarkdownFencedCodeBlockMatch.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L42)

Structured fenced-code info metadata.

`public string HtmlEncodedContent { get; }` [#](#property-htmlencodedcontent)

[MarkdownFencedCodeBlockMatch.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L47)

HTML-encoded code contents as emitted by the markdown HTML renderer.

`public string RawContent { get; }` [#](#property-rawcontent)

[MarkdownFencedCodeBlockMatch.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L52)

HTML-decoded raw code contents.

`public string OriginalHtml { get; }` [#](#property-originalhtml)

[MarkdownFencedCodeBlockMatch.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L57)

Original HTML fragment for the matched <pre><code> block.

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

[MarkdownFencedCodeBlockMatch.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L60)

Original source location of the fence, when available.

`public MarkdownSourceSpan? ContentSourceSpan { get; }` [#](#property-contentsourcespan)

[MarkdownFencedCodeBlockMatch.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownFencedCodeBlockMatch.cs#L63)

Original source location of the fence contents, when available.

<!-- PowerForge markdown artifact sha256:3DEECED47C3F1922927A1B6A7BE73E6EA4A4437CFC63C66DD5D44E108C66FA02 -->
