for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symplify\PHP7_Sculpin\MarkdownBundle;
use Michelf\MarkdownExtra;
use Symplify\PHP7_Sculpin\Converter\SourceConverterContext;
final class MarkdownConverter
{
/**
* @var string
const NAME = 'markdown';
* @var MarkdownExtra
private $markdown;
public function __construct(MarkdownExtra $markdown)
$this->markdown = $markdown;
}
* {@inheritdoc}
public function convert(SourceConverterContext $converterContext)
$converterContext->setContent(
$this->markdown->transform(
$converterContext->content()
)
);