CodeBlock Class

Represents an indented code block.

public class CodeBlock : LeafBlock

Remarks

Related to CommonMark spec: 4.4 Indented code blocks

Inheritance
LeafBlock CodeBlock

Nested types

NameDescription
CodeBlock.CodeBlockLineRepresents the CodeBlockLine type.

Constructors

NameDescription
CodeBlock(BlockParser)Initializes a new instance of the CodeBlock class.

CodeBlock(BlockParser)

CodeBlock.cs

Initializes a new instance of the CodeBlock class.

public CodeBlock(BlockParser parser)

Parameters

parser BlockParser
The parser.

Properties

NameDescription
CodeBlockLinesGets or sets the code block lines.

CodeBlockLines

CodeBlock.cs

Gets or sets the code block lines.

public List<CodeBlock.CodeBlockLine> CodeBlockLines { get; }