Copied!

Base class for a block parser

Slightly more convenient to extend from vs. implementing the interface

Abstract
Methods
public addLine(string $line) : void
public canContain(League\CommonMark\Node\Block\AbstractBlock $childBlock) : bool
public canHaveLazyContinuationLines() : bool
public closeBlock() : void
public abstract League\CommonMark\Parser\Block\BlockContinueParserInterface::getBlock() : League\CommonMark\Node\Block\AbstractBlock
 

Return the current block being parsed by this parser

public isContainer() : bool
public abstract League\CommonMark\Parser\Block\BlockContinueParserInterface::tryContinue(League\CommonMark\Parser\Cursor $cursor, League\CommonMark\Parser\Block\BlockContinueParserInterface $activeBlockParser) : ?League\CommonMark\Parser\Block\BlockContinue
 

Attempt to parse the given line

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration