CodeBlock Class
Represents an indented code block.
public class CodeBlock : LeafBlockRemarks
Related to CommonMark spec: 4.4 Indented code blocks
- Inheritance
LeafBlockCodeBlock
Nested types
| Name | Description |
|---|---|
| CodeBlock.CodeBlockLine | Represents the CodeBlockLine type. |
Constructors
| Name | Description |
|---|---|
| CodeBlock(BlockParser) | Initializes a new instance of the CodeBlock class. |
CodeBlock(BlockParser)
CodeBlock.csInitializes a new instance of the CodeBlock class.
public CodeBlock(BlockParser parser)Parameters
parserBlockParser- The parser.
Properties
| Name | Description |
|---|---|
| CodeBlockLines | Gets or sets the code block lines. |
CodeBlockLines
CodeBlock.csGets or sets the code block lines.
public List<CodeBlock.CodeBlockLine> CodeBlockLines { get; }