interface League / CommonMark / Parser / Block / BlockStartParserInterface

BlockStartParserInterface

Methods

public

tryStart ( Cursor $cursor , MarkdownParserStateInterface $parserState ) : BlockStart|null

Check whether we should handle the block at the current position

Parameters

  • $cursor Cursor
    A cloned copy of the cursor at the current parsing location
  • $parserState MarkdownParserStateInterface
    Additional information about the state of the Markdown parser