interface League / CommonMark / Delimiter / Processor / DelimiterProcessorInterface
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.

DelimiterProcessorInterface

Methods

public

getOpeningCharacter ( ) : void

Returns the character that marks the beginning of a delimited node.

public

getClosingCharacter ( ) : void

Returns the character that marks the ending of a delimited node.

public

getMinLength ( ) : void

Minimum number of delimiter characters that are needed to active this.

public

getDelimiterUse ( DelimiterInterface $opener , DelimiterInterface $closer ) : void

Determine how many (if any) of the delimiter characters should be used.

Parameters

public

process ( AbstractStringContainer $opener , AbstractStringContainer $closer , int $delimiterUse ) : void

Process the matched delimiters, e.g. by wrapping the nodes between opener and closer in a new node, or appending a new node after the opener.

Parameters