Blocks
class Blocks extends AbstractPass
Properties
protected Parser | $parser | from AbstractPass | |
protected ParsedText | $text | from AbstractPass | |
protected array | $setextLines |
Methods
void
parse()
Parse the prepared text from stored parser
void
closeList(array $list, int $textBoundary)
Close a list at given offset
int
computeBlockIgnoreLen(string $str, int $maxBlockDepth)
Compute the amount of text to ignore at the start of a block line
int
getAtxHeaderEndTagLen(int $startPos, int $endPos)
Return the length of the markup at the end of an ATX header
string[]
getBlockMarks(string $str)
Capture and return block marks from given string
void
matchSetextLines()
Capture and store lines that contain a Setext-tyle header
Details
in
AbstractPass at line 29
__construct(Parser $parser, ParsedText $text)
No description
at line 22
void
parse()
Parse the prepared text from stored parser
at line 415
protected void
closeList(array $list, int $textBoundary)
Close a list at given offset
at line 436
protected int
computeBlockIgnoreLen(string $str, int $maxBlockDepth)
Compute the amount of text to ignore at the start of a block line
at line 454
protected int
getAtxHeaderEndTagLen(int $startPos, int $endPos)
Return the length of the markup at the end of an ATX header
at line 468
protected string[]
getBlockMarks(string $str)
Capture and return block marks from given string
at line 480
protected void
matchSetextLines()
Capture and store lines that contain a Setext-tyle header