Skip to content

Commit

Permalink
The filter now returns a Twig_Markup object
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jul 24, 2014
1 parent afd4517 commit 0bf5c2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parsedown/twigextensions/ParsedownTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ public function parsedownFilter($text, $parseAs = 'text')
{
if ($parseAs == 'line')
{
return craft()->parsedown->parseLine($text);
$parsed = craft()->parsedown->parseLine($text);
}
else
{
return craft()->parsedown->parseText($text);
$parsed = craft()->parsedown->parseText($text);
}

return TemplateHelper::getRaw($parsed);
}
}

0 comments on commit 0bf5c2a

Please sign in to comment.