Skip to content

Commit

Permalink
⬆️ replaced cebe/markdown with michelf/php-markdown for #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dann committed Jan 5, 2017
1 parent ad49ac2 commit 3c1f75a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"
Expand Down
10 changes: 5 additions & 5 deletions src/Entities/Renderers/MarkdownRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Tapestry\Entities\Renderers;

use Tapestry\Entities\File;
use cebe\markdown\GithubMarkdown;
use Michelf\MarkdownExtra;

class MarkdownRenderer implements RendererInterface
{
Expand All @@ -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;
}
Expand Down Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 3c1f75a

Please sign in to comment.