daux.io/libs/Format/Confluence/CommonMark/CommonMarkConverter.php

21 lines
660 B
PHP
Raw Normal View History

2015-06-29 16:16:39 +02:00
<?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());
}
}