Improve processors

Now you can add generators and extend the markdown parser
This commit is contained in:
Stéphane Goetz
2015-07-19 00:55:57 +02:00
parent bb3a3408fd
commit e3a3438ccd
7 changed files with 89 additions and 19 deletions

View File

@ -18,8 +18,9 @@ class CommonMarkConverter extends \League\CommonMark\CommonMarkConverter
$this->extendEnvironment($environment);
//TODO :: finish
//$daux->getProcessor()->extendCommonMarkEnvironment($environment);
if (array_key_exists('processor_instance', $config['daux'])) {
$config['daux']['processor_instance']->extendCommonMarkEnvironment($environment);
}
$this->docParser = new DocParser($environment);
$this->htmlRenderer = new HtmlRenderer($environment);