interface
League
/
CommonMark
/
Delimiter
/
Processor
/
DelimiterProcessorInterface
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
-
$opener
DelimiterInterface
The opening delimiter run
-
$closer
DelimiterInterface
The closing delimiter run
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
-
$opener
AbstractStringContainer
The node that contained the opening delimiter
-
$closer
AbstractStringContainer
The node that contained the closing delimiter
-
$delimiterUse
int
The number of delimiters that were used