diff --git a/extra/markdown-extra/LeagueMarkdown.php b/extra/markdown-extra/LeagueMarkdown.php index edd2bfd6c..12adf43d2 100644 --- a/extra/markdown-extra/LeagueMarkdown.php +++ b/extra/markdown-extra/LeagueMarkdown.php @@ -17,20 +17,14 @@ use League\CommonMark\MarkdownConverter; class LeagueMarkdown implements MarkdownInterface { private $converter; - private $legacySupport; public function __construct(?MarkdownConverter $converter = null) { $this->converter = $converter ?: new CommonMarkConverter(); - $this->legacySupport = !method_exists($this->converter, 'convert'); } public function convert(string $body): string { - if ($this->legacySupport) { - return $this->converter->convertToHtml($body); - } - return $this->converter->convert($body); } }