Property | Type | Description | |
---|---|---|---|
$data | array | Used for storage of arbitrary data. |
Property | Type | Description | |
---|---|---|---|
$endLine | integer | ||
$finalStringContents | string | ||
$lastLineBlank | boolean | ||
$open | boolean | ||
$startLine | integer | ||
$strings | League\CommonMark\Util\ArrayCollection | string[] |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
acceptsLines ( ) : boolean | Returns true if block type can accept lines of text | |
addLine ( string $line ) | ||
canContain ( |
Returns true if this block can contain the given block as a child node | |
endsWithBlankLine ( ) : boolean | Whether the block ends with a blank line | |
finalize ( League\CommonMark\ContextInterface $context, integer $endLineNumber ) | Finalize the block; mark it closed for modification | |
getData ( string $key, mixed $default = null ) : mixed | ||
getEndLine ( ) : integer | ||
getStartLine ( ) : integer | ||
getStringContent ( ) : string | ||
getStrings ( ) : string[] | ||
handleRemainingContents ( League\CommonMark\ContextInterface $context, |
||
hasChildren ( ) : boolean | ||
isCode ( ) : boolean | Whether this is a code block | |
isContainer ( ) : boolean | ||
isOpen ( ) : boolean | Whether the block is open for modifications | |
matchesNextLine ( |
||
setEndLine ( $endLine ) | ||
setLastLineBlank ( boolean $blank ) | ||
setStartLine ( integer $startLine ) | ||
shouldLastLineBeBlank ( |
Determines whether the last line should be marked as blank |
Method | Description | |
---|---|---|
setParent ( League\CommonMark\Node\Node $node = null ) |
abstract public acceptsLines ( ) : boolean | ||
return | boolean |
abstract public canContain ( |
||
$block | ||
return | boolean |
public endsWithBlankLine ( ) : boolean | ||
return | boolean |
public handleRemainingContents ( League\CommonMark\ContextInterface $context, |
||
$context | League\CommonMark\ContextInterface | |
$cursor |
abstract public matchesNextLine ( |
||
$cursor | ||
return | boolean |
protected setParent ( League\CommonMark\Node\Node $node = null ) | ||
$node | League\CommonMark\Node\Node |
public shouldLastLineBeBlank ( |
||
$cursor | ||
$currentLineNumber | integer | |
return | boolean |