21 lines
660 B
PHP
21 lines
660 B
PHP
|
<?php namespace Todaymade\Daux\Format\Confluence\CommonMark;
|
||
|
|
||
|
use League\CommonMark\Environment;
|
||
|
|
||
|
class CommonMarkConverter extends \Todaymade\Daux\Format\Base\CommonMark\CommonMarkConverter
|
||
|
{
|
||
|
protected function getLinkRenderer(Environment $environment)
|
||
|
{
|
||
|
return new LinkRenderer($environment->getConfig('daux'));
|
||
|
}
|
||
|
|
||
|
protected function extendEnvironment(Environment $environment)
|
||
|
{
|
||
|
parent::extendEnvironment($environment);
|
||
|
|
||
|
//Add code renderer
|
||
|
$environment->addBlockRenderer('FencedCode', new FencedCodeRenderer());
|
||
|
$environment->addBlockRenderer('IndentedCode', new IndentedCodeRenderer());
|
||
|
}
|
||
|
}
|