Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
Fixed weird bug that caused wrong method to be called with Blade dire…
Browse files Browse the repository at this point in the history
…ctive
  • Loading branch information
Andreas Indal committed Aug 18, 2016
1 parent 6088341 commit 87e850d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function boot()
]);

Blade::directive('markdown', function($markdown) {
if (! is_null($markdown)) {
if ($markdown) {
return "<?php echo app('Indal\Markdown\Parser')->parse($markdown); ?>";
}

Expand Down

0 comments on commit 87e850d

Please sign in to comment.