Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownNativeCodeBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Native projection for a code block.

Inheritance

Properties

public CodeBlock Code { get; } #

Source code block.

public string Language { get; } #

Primary fence language token.

public string InfoString { get; } #

Full fenced-code info string.

public MarkdownCodeFenceInfo FenceInfo { get; } #

Structured fenced-code metadata.

public string Content { get; } #

Code content with normalized line endings.

public string? Caption { get; } #

Optional code-block caption.

public IReadOnlyDictionary<string, string?> Attributes { get; } #

Parsed fence attributes.

public IReadOnlyList<string> Classes { get; } #

Parsed fence classes.

public string? ElementId { get; } #

Parsed fence element id.

public string? Title { get; } #

Convenience title resolved from fence metadata.

public string? OpeningFence { get; } #

Opening fence marker text, preserving the parsed marker character and length when source-backed.

public string? ClosingFence { get; } #

Closing fence marker text, preserving the parsed marker character and length when source-backed.

public MarkdownSourceSpan? OpeningFenceSourceSpan { get; } #

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

public MarkdownSourceSpan? InfoStringSourceSpan { get; } #

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

public MarkdownSourceSpan? AttributeSourceSpan { get; } #

Source span for explicit generic attributes inside the fenced-code info string.

public MarkdownSourceSpan? ContentSourceSpan { get; } #

Source span for the code payload when available.

public MarkdownSourceSpan? ClosingFenceSourceSpan { get; } #

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