OfficeIMO

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

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.