Copied!
CloneableFinalInstantiable
Methods
public getMatchDefinition() : League\CommonMark\Parser\Inline\InlineParserMatch
public parse(League\CommonMark\Parser\InlineParserContext $inlineContext) : bool
Constants
private League\CommonMark\Extension\CommonMark\Parser\Inline\BacktickParser::MAX_BACKTICKS = 1000
 

Max bound for backtick code span delimiters.

  • see https://github.com/commonmark/cmark/commit/8ed5c9d
Properties
private ?WeakReference $lastCursor = NULL
 
  • var \WeakReference<\Cursor>|null
private bool $lastCursorScanned = false
private array $seenBackticks = []
 
  • var array<int,int> backtick count => position of known ender
Methods
private findMatchingTicks(int $openTickLength, League\CommonMark\Parser\Cursor $cursor) : bool
 

Locates the matching closer for a backtick code span.

Leverages some caching to avoid traversing the same cursor multiple times when we've already seen all the potential backtick closers.

  • see https://github.com/commonmark/cmark/commit/8ed5c9d
  • param int $openTickLength Number of backticks in the opening sequence
  • param \Cursor $cursor Cursor to scan
  • return bool True if a matching closer was found, false otherwise
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration