Skip to content

Commit

Permalink
Merge pull request #339 from mvrhov/michelfMarkdown
Browse files Browse the repository at this point in the history
Replace deprecated fork of dflydev's mardown library with the original o...
  • Loading branch information
willdurand committed Feb 19, 2014
2 parents ee68eab + 457df81 commit eca9d25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Twig/Extension/MarkdownExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Nelmio\ApiDocBundle\Twig\Extension;

use dflydev\markdown\MarkdownExtraParser;
use Michelf\MarkdownExtra;

class MarkdownExtension extends \Twig_Extension
{
private $markdownParser;

public function __construct()
{
$this->markdownParser = new MarkdownExtraParser();
$this->markdownParser = new MarkdownExtra();
}

/**
Expand All @@ -33,6 +33,6 @@ public function getName()

public function markdown($text)
{
return $this->markdownParser->transformMarkdown($text);
return $this->markdownParser->transform($text);
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"symfony/twig-bundle": "~2.1",
"symfony/framework-bundle": "~2.1",
"symfony/console": "~2.1",
"dflydev/markdown": "~1.0"
"michelf/php-markdown": "~1.4"
},
"conflict": {
"jms/serializer": "<0.12",
Expand Down

0 comments on commit eca9d25

Please sign in to comment.