Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
680 additions
and
938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,81 @@ | |||
<?php | |||
|
|||
/* | |||
* This file is part of the league/commonmark package. | |||
* | |||
* (c) Colin O'Dell <colinodell@gmail.com> | |||
* | |||
* For the full copyright and license information, please view the LICENSE | |||
* file that was distributed with this source code. | |||
*/ | |||
|
|||
namespace League\CommonMark; | |||
|
|||
use League\CommonMark\Block\Parser\BlockParserInterface; | |||
use League\CommonMark\Block\Renderer\BlockRendererInterface; | |||
use League\CommonMark\Inline\Parser\InlineParserInterface; | |||
use League\CommonMark\Inline\Processor\InlineProcessorInterface; | |||
use League\CommonMark\Inline\Renderer\InlineRendererInterface; | |||
|
|||
interface ConfigurableEnvironmentInterface extends EnvironmentInterface | |||
{ | |||
/** | |||
* @param array $config | |||
*/ | |||
public function mergeConfig(array $config = []); | |||
|
|||
/** | |||
* @param array $config | |||
*/ | |||
public function setConfig(array $config = []); | |||
|
|||
/** | |||
* @param BlockParserInterface $parser | |||
* @param int $priority | |||
* | |||
* @return self | |||
*/ | |||
public function addBlockParser(BlockParserInterface $parser, $priority = 0); | |||
|
|||
/** | |||
* @param InlineParserInterface $parser | |||
* @param int $priority | |||
* | |||
* @return self | |||
*/ | |||
public function addInlineParser(InlineParserInterface $parser, $priority = 0); | |||
|
|||
/** | |||
* @param InlineProcessorInterface $processor | |||
* @param int $priority | |||
* | |||
* @return self | |||
*/ | |||
public function addInlineProcessor(InlineProcessorInterface $processor, $priority = 0); | |||
|
|||
/** | |||
* @param DocumentProcessorInterface $processor | |||
* @param int $priority | |||
* | |||
* @return self | |||
*/ | |||
public function addDocumentProcessor(DocumentProcessorInterface $processor, $priority = 0); | |||
|
|||
/** | |||
* @param string $blockClass | |||
* @param BlockRendererInterface $blockRenderer | |||
* @param int $priority | |||
* | |||
* @return self | |||
*/ | |||
public function addBlockRenderer($blockClass, BlockRendererInterface $blockRenderer, $priority = 0); | |||
|
|||
/** | |||
* @param string $inlineClass | |||
* @param InlineRendererInterface $renderer | |||
* @param int $priority | |||
* | |||
* @return self | |||
*/ | |||
public function addInlineRenderer($inlineClass, InlineRendererInterface $renderer, $priority = 0); | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.