diff --git a/composer.json b/composer.json index 16fb54c..9a8ba04 100644 --- a/composer.json +++ b/composer.json @@ -37,9 +37,9 @@ "league/plates": "^3.1", "league/event": "^2.1", "nesbot/carbon": "^1.21", - "cebe/markdown": "^1.1", "phine/phar": "~1.0", - "composer/semver": "^1.4" + "composer/semver": "^1.4", + "michelf/php-markdown": "^1.7" }, "require-dev": { "phpunit/phpunit": "5.1.*" diff --git a/src/Entities/Renderers/MarkdownRenderer.php b/src/Entities/Renderers/MarkdownRenderer.php index 776120a..aa43df5 100644 --- a/src/Entities/Renderers/MarkdownRenderer.php +++ b/src/Entities/Renderers/MarkdownRenderer.php @@ -3,7 +3,7 @@ namespace Tapestry\Entities\Renderers; use Tapestry\Entities\File; -use cebe\markdown\GithubMarkdown; +use Michelf\MarkdownExtra; class MarkdownRenderer implements RendererInterface { @@ -12,16 +12,16 @@ class MarkdownRenderer implements RendererInterface */ private $extensions = ['md', 'markdown']; /** - * @var GithubMarkdown + * @var MarkdownExtra */ private $markdown; /** * MarkdownRenderer constructor. * - * @param GithubMarkdown $markdown + * @param MarkdownExtra $markdown */ - public function __construct(GithubMarkdown $markdown) + public function __construct(MarkdownExtra $markdown) { $this->markdown = $markdown; } @@ -57,7 +57,7 @@ public function canRender($extension) */ public function render(File $file) { - return $this->markdown->parse($file->getContent()); + return $this->markdown->transform($file->getContent()); } /**