API Reference

Class

CodeBlock

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Fenced code block with optional caption. Fence length adapts to backticks inside the content.

Inheritance

Usage

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

Returned or exposed by

Accepted by parameters

Constructors

public CodeBlock(String language, String content) #

Create a code block with an optional fenced-code info string.

Parameters

language System.String requiredposition: 0
content System.String requiredposition: 1

Methods

OfficeIMO#Markdown#IMarkdownBlock#RenderHtml() #
OfficeIMO#Markdown#IMarkdownBlock#RenderMarkdown() #

Properties

public String Language { get; } #

Parsed primary fence language token (for example csharp or bash).

public String InfoString { get; } #

Full fenced-code info string as it appeared after the opening fence marker.

public MarkdownCodeFenceInfo FenceInfo { get; } #

Structured fenced-code info metadata.

public String Content { get; } #

Code contents.

public virtual String Caption { get; set; } #

Optional caption shown under the block.

public Nullable<MarkdownSourceSpan> OpeningFenceSourceSpan { get; set; } #

Source span for the opening fence token when parsed from a fenced source block.

public Nullable<MarkdownSourceSpan> InfoStringSourceSpan { get; set; } #

Source span for the fenced-code info string when parsed from a fenced source block.

public Nullable<MarkdownSourceSpan> ContentSourceSpan { get; set; } #

Source span for the code payload when source-backed.

public Nullable<MarkdownSourceSpan> ClosingFenceSourceSpan { get; set; } #

Source span for the closing fence token when parsed from a closed fenced source block.