Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownFencedCodeBlockMatch

OfficeIMO.MarkdownRenderer

Namespace
OfficeIMO.MarkdownRenderer
Assembly
OfficeIMO.MarkdownRenderer
Source revision
ba882f6b0d07 with working tree changes
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

Constructors

MarkdownFencedCodeBlockMatch 2 overloads
public MarkdownFencedCodeBlockMatch(string infoString, string htmlEncodedContent, string rawContent, string originalHtml) #

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) #

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

Properties

public string Language { get; } #

Parsed primary fence language token.

public string InfoString { get; } #

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

public MarkdownCodeFenceInfo FenceInfo { get; } #

Structured fenced-code info metadata.

public string HtmlEncodedContent { get; } #

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

public string RawContent { get; } #

HTML-decoded raw code contents.

public string OriginalHtml { get; } #

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

public MarkdownSourceSpan? SourceSpan { get; } #

Original source location of the fence, when available.

public MarkdownSourceSpan? ContentSourceSpan { get; } #

Original source location of the fence contents, when available.