mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-07 07:57:01 +00:00
Update LeagueMarkdown.php
This commit is contained in:
@@ -12,13 +12,14 @@
|
||||
namespace Twig\Extra\Markdown;
|
||||
|
||||
use League\CommonMark\CommonMarkConverter;
|
||||
use League\CommonMark\MarkdownConverter;
|
||||
|
||||
class LeagueMarkdown implements MarkdownInterface
|
||||
{
|
||||
private $converter;
|
||||
private $legacySupport;
|
||||
|
||||
public function __construct(?CommonMarkConverter $converter = null)
|
||||
public function __construct(?MarkdownConverter $converter = null)
|
||||
{
|
||||
$this->converter = $converter ?: new CommonMarkConverter();
|
||||
$this->legacySupport = !method_exists($this->converter, 'convert');
|
||||
|
||||
Reference in New Issue
Block a user