HtmlBlockStartParser
in package
implements
BlockStartParserInterface
FinalYes
Table of Contents
Interfaces
- BlockStartParserInterface
- Interface for a block parser which identifies block starts.
Methods
- tryStart() : BlockStart|null
- Check whether we should handle the block at the current position
- isType7BlockAllowed() : bool
Methods
tryStart()
Check whether we should handle the block at the current position
public
tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState) : BlockStart|null
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
Return values
BlockStart|null —The BlockStart that has been identified, or null if the block doesn't match here
isType7BlockAllowed()
private
isType7BlockAllowed(Cursor $cursor, MarkdownParserStateInterface $parserState) : bool
Parameters
- $cursor : Cursor
- $parserState : MarkdownParserStateInterface