API Reference

Class

MarkdownNativeCodeBlock

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
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 Nullable<MarkdownSourceSpan> OpeningFenceSourceSpan { get; } #

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

public Nullable<MarkdownSourceSpan> InfoStringSourceSpan { get; } #

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

public Nullable<MarkdownSourceSpan> AttributeSourceSpan { get; } #

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

public Nullable<MarkdownSourceSpan> ContentSourceSpan { get; } #

Source span for the code payload when available.

public Nullable<MarkdownSourceSpan> ClosingFenceSourceSpan { get; } #

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