Skip to content

Commit

Permalink
Updated example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Mar 7, 2023
1 parent 673ad9a commit ef5a6ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ Markdown::convert('foo')->getContent(); // <p>foo</p>
If you prefer to use dependency injection over facades like me, then you can easily inject the class like so:

```php
use Illuminate\Support\Facades\App;
use League\CommonMark\ConverterInterface;

class Foo
Expand All @@ -130,7 +129,7 @@ class Foo
}
}

App::make(Foo::class)->bar();
app(Foo::class)->bar();
```

And don't forget, that's just the basics. We also support extension through listening for the resolving event from the container, and we ship with integration with Laravel's view system. You can use both the `@markdown` blade directive, and also using the following file extensions will compile your views as markdown: `'.md'`, `'.md.php'`, and `'.md.blade.php'`.
Expand Down

0 comments on commit ef5a6ce

Please sign in to comment.