Copied!

Interface for a block parser which identifies block starts.

AbstractInterface
Methods
public abstract tryStart(League\CommonMark\Parser\Cursor $cursor, League\CommonMark\Parser\MarkdownParserStateInterface $parserState) : ?League\CommonMark\Parser\Block\BlockStart
 

Check whether we should handle the block at the current position

  • param \Cursor $cursor A cloned copy of the cursor at the current parsing location
  • param \MarkdownParserStateInterface $parserState Additional information about the state of the Markdown parser
  • return \BlockStart|null The BlockStart that has been identified, or null if the block doesn't match here
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration