MKFencedCodeBlock
Inherits MKBlock
Description
Represents a fenced code block within a Markdown document.
Properties
Name | Type | Read-Only |
---|---|---|
ClosingFenceLineNumber | Integer |
|
ClosingFenceLocalStart | Integer |
|
ClosingFenceStart | Integer |
|
FenceChar | String |
|
FenceLength | Integer |
|
FenceOffset | Integer |
|
HasInfoString | Boolean |
✔ |
InfoString | String |
|
InfoStringLength | Integer |
|
InfoStringLocalStart | Integer |
|
InfoStringStart | Integer |
|
OpeningFenceLocalStart | Integer |
|
ShouldClose | Boolean |
Methods
Name | Parameters | Returns |
---|---|---|
Constructor | parent As MKBlock , blockStartOffset As Integer |
|
Finalise | line As XUITextLine |
Property Descriptions
ClosingFenceLineNumber As Integer
The number of the line that the closing fence is on. -1
if there isn't one.
ClosingFenceLocalStart As Integer
The 0-based local position on the line that the closing fence character starts at.
ClosingFenceStart As Integer
0-based position in the source of the start of this fenced code block's closing fence.
FenceChar As String
The fence character.
FenceLength As Integer
The number of fence characters making up the opening fence.
FenceOffset As Integer
The 0-based offset of the start of the fence marker.
HasInfoString As Boolean
True if this fenced code block has an info string.
InfoString As String
The (optional) info string.
InfoStringLength As Integer
The length of the info string.
InfoStringLocalStart As Integer
The 0-based local start position on the line of the start of the info string (or -1
if there isn't one).
InfoStringStart As Integer
The 0-based absolute start position in the original source of the start of the info string (or -1
if there isn't one).
OpeningFenceLocalStart As Integer
The 0-based local position on the line that the opening fence character starts at.
ShouldClose As Boolean
Set to True in ProcessRemainderOfLine
if this fenced code block needs closing.
Method Descriptions
Constructor(parent As MKBlock, blockStartOffset As Integer)
Default constructor.
parent
is the parent of this block.blockStartOffset
is the 0-based position in the original Markdown source that this block begins at.
Finalise(line As XUITextLine)
Closes this block and makes any final changes that may be required.