Property | Type | Description | |
---|---|---|---|
$blockParsers | League\CommonMark\Block\Parser\BlockParserInterface[] | ||
$blockRenderersByClass | League\CommonMark\Block\Renderer\BlockRendererInterface[] | ||
$config | |||
$documentProcessors | League\CommonMark\DocumentProcessorInterface[] | ||
$extensions | League\CommonMark\Extension\ExtensionInterface[] | ||
$extensionsInitialized | boolean | ||
$inlineParserCharacterRegex | string | ||
$inlineParsers | League\CommonMark\Inline\Parser\InlineParserInterface[] | ||
$inlineParsersByCharacter | array | ||
$inlineProcessors | League\CommonMark\Inline\Processor\InlineProcessorInterface[] | ||
$inlineRenderersByClass | League\CommonMark\Inline\Renderer\InlineRendererInterface[] |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) | ||
addBlockParser ( League\CommonMark\Block\Parser\BlockParserInterface $parser ) | ||
addBlockRenderer ( string $blockClass, League\CommonMark\Block\Renderer\BlockRendererInterface $blockRenderer ) | ||
addDocumentProcessor ( League\CommonMark\DocumentProcessorInterface $processor ) | ||
addExtension ( League\CommonMark\Extension\ExtensionInterface $extension ) | Add a single extension | |
addInlineParser ( League\CommonMark\Inline\Parser\InlineParserInterface $parser ) | ||
addInlineProcessor ( League\CommonMark\Inline\Processor\InlineProcessorInterface $processor ) | ||
addInlineRenderer ( string $inlineClass, League\CommonMark\Inline\Renderer\InlineRendererInterface $renderer ) | ||
createCommonMarkEnvironment ( ) : |
||
createInlineParserEngine ( ) | ||
getBlockParsers ( ) : League\CommonMark\Block\Parser\BlockParserInterface[] | ||
getBlockRendererForClass ( string $blockClass ) : League\CommonMark\Block\Renderer\BlockRendererInterface | null | ||
getConfig ( string | null $key = null, mixed $default = null ) : mixed | ||
getDocumentProcessors ( ) : League\CommonMark\DocumentProcessorInterface[] | ||
getExtensions ( ) : League\CommonMark\Extension\ExtensionInterface[] | Get all registered extensions | |
getInlineParser ( string $name ) : League\CommonMark\Inline\Parser\InlineParserInterface | ||
getInlineParserCharacterRegex ( ) : string | Regex which matches any character which doesn't indicate an inline element | |
getInlineParsers ( ) : League\CommonMark\Inline\Parser\InlineParserInterface[] | ||
getInlineParsersForCharacter ( string $character ) : League\CommonMark\Inline\Parser\InlineParserInterface[] | null | ||
getInlineProcessors ( ) : League\CommonMark\Inline\Processor\InlineProcessorInterface[] | ||
getInlineRendererForClass ( string $inlineClass ) : League\CommonMark\Inline\Renderer\InlineRendererInterface | null | ||
mergeConfig ( array $config = [] ) | ||
setConfig ( array $config = [] ) |
Method | Description | |
---|---|---|
initializeExtension ( League\CommonMark\Extension\ExtensionInterface $extension ) | ||
initializeExtensions ( ) |
Method | Description | |
---|---|---|
assertUninitialized ( string $message ) | ||
buildInlineParserCharacterRegex ( ) | ||
getMiscExtension ( ) : |
||
initalizeBlockParsers ( League\CommonMark\Block\Parser\BlockParserInterface[] $blockParsers ) | ||
initializeBlockRenderers ( League\CommonMark\Block\Renderer\BlockRendererInterface[] $blockRenderers ) | ||
initializeDocumentProcessors ( League\CommonMark\DocumentProcessorInterface[] $documentProcessors ) | ||
initializeInlineParsers ( League\CommonMark\Inline\Parser\InlineParserInterface[] $inlineParsers ) | ||
initializeInlineProcessors ( League\CommonMark\Inline\Processor\InlineProcessorInterface[] $inlineProcessors ) | ||
initializeInlineRenderers ( League\CommonMark\Inline\Renderer\InlineRendererInterface[] $inlineRenderers ) |
public addBlockParser ( League\CommonMark\Block\Parser\BlockParserInterface $parser ) | ||
$parser | League\CommonMark\Block\Parser\BlockParserInterface |
public addBlockRenderer ( string $blockClass, League\CommonMark\Block\Renderer\BlockRendererInterface $blockRenderer ) | ||
$blockClass | string | |
$blockRenderer | League\CommonMark\Block\Renderer\BlockRendererInterface |
public addDocumentProcessor ( League\CommonMark\DocumentProcessorInterface $processor ) | ||
$processor | League\CommonMark\DocumentProcessorInterface |
public addExtension ( League\CommonMark\Extension\ExtensionInterface $extension ) | ||
$extension | League\CommonMark\Extension\ExtensionInterface |
public addInlineParser ( League\CommonMark\Inline\Parser\InlineParserInterface $parser ) | ||
$parser | League\CommonMark\Inline\Parser\InlineParserInterface |
public addInlineProcessor ( League\CommonMark\Inline\Processor\InlineProcessorInterface $processor ) | ||
$processor | League\CommonMark\Inline\Processor\InlineProcessorInterface |
public addInlineRenderer ( string $inlineClass, League\CommonMark\Inline\Renderer\InlineRendererInterface $renderer ) | ||
$inlineClass | string | |
$renderer | League\CommonMark\Inline\Renderer\InlineRendererInterface |
public static createCommonMarkEnvironment ( ) : |
||
return |
public getBlockParsers ( ) : League\CommonMark\Block\Parser\BlockParserInterface[] | ||
return | League\CommonMark\Block\Parser\BlockParserInterface[] |
public getBlockRendererForClass ( string $blockClass ) : League\CommonMark\Block\Renderer\BlockRendererInterface | null | ||
$blockClass | string | |
return | League\CommonMark\Block\Renderer\BlockRendererInterface | null |
public getDocumentProcessors ( ) : League\CommonMark\DocumentProcessorInterface[] | ||
return | League\CommonMark\DocumentProcessorInterface[] |
public getExtensions ( ) : League\CommonMark\Extension\ExtensionInterface[] | ||
return | League\CommonMark\Extension\ExtensionInterface[] |
public getInlineParser ( string $name ) : League\CommonMark\Inline\Parser\InlineParserInterface | ||
$name | string | |
return | League\CommonMark\Inline\Parser\InlineParserInterface |
public getInlineParserCharacterRegex ( ) : string | ||
return | string |
public getInlineParsers ( ) : League\CommonMark\Inline\Parser\InlineParserInterface[] | ||
return | League\CommonMark\Inline\Parser\InlineParserInterface[] |
public getInlineParsersForCharacter ( string $character ) : League\CommonMark\Inline\Parser\InlineParserInterface[] | null | ||
$character | string | |
return | League\CommonMark\Inline\Parser\InlineParserInterface[] | null |
public getInlineProcessors ( ) : League\CommonMark\Inline\Processor\InlineProcessorInterface[] | ||
return | League\CommonMark\Inline\Processor\InlineProcessorInterface[] |
public getInlineRendererForClass ( string $inlineClass ) : League\CommonMark\Inline\Renderer\InlineRendererInterface | null | ||
$inlineClass | string | |
return | League\CommonMark\Inline\Renderer\InlineRendererInterface | null |
protected initializeExtension ( League\CommonMark\Extension\ExtensionInterface $extension ) | ||
$extension | League\CommonMark\Extension\ExtensionInterface |
protected BlockParserInterface[],League\CommonMark\Block\Parser $blockParsers | ||
return | League\CommonMark\Block\Parser\BlockParserInterface[] |
protected BlockRendererInterface[],League\CommonMark\Block\Renderer $blockRenderersByClass | ||
return | League\CommonMark\Block\Renderer\BlockRendererInterface[] |
protected Configuration,League\CommonMark\Util $config | ||
return |
protected DocumentProcessorInterface[],League\CommonMark $documentProcessors | ||
return | League\CommonMark\DocumentProcessorInterface[] |
protected ExtensionInterface[],League\CommonMark\Extension $extensions | ||
return | League\CommonMark\Extension\ExtensionInterface[] |
protected string $inlineParserCharacterRegex | ||
return | string |
protected InlineParserInterface[],League\CommonMark\Inline\Parser $inlineParsers | ||
return | League\CommonMark\Inline\Parser\InlineParserInterface[] |
protected array $inlineParsersByCharacter | ||
return | array |
protected InlineProcessorInterface[],League\CommonMark\Inline\Processor $inlineProcessors | ||
return | League\CommonMark\Inline\Processor\InlineProcessorInterface[] |