MarkdownFencedCodeBlockMatch
OfficeIMO.MarkdownRenderer
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
public MarkdownFencedCodeBlockMatch(string infoString, string htmlEncodedContent, string rawContent, string originalHtml) #Creates a new fenced code block match payload.
Parameters
- infoString string
- htmlEncodedContent string
- rawContent string
- originalHtml string
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
- htmlEncodedContent string
- rawContent string
- originalHtml string
- sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan?
- contentSourceSpan OfficeIMO.Markdown.MarkdownSourceSpan?
Inherited Methods
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.