Skip to content

Commit

Permalink
完善文档
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Sep 4, 2017
1 parent 6ebbbb0 commit 6c33acb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -20,24 +20,32 @@ $ composer require yansongda/laravel-parsedown
### 添加 service provider

```php
<?php

Yansongda\LaravelParasedown\ParsedownServiceProvider::class,
```

### 添加 alias

```php
<?php

'Parsedown' => Yansongda\LaravelParsedown\Facades\Parsedown::class,
```

## 使用方法

### 使用 blade 语法
```php
<?php

@parsedown('## h2');
```

### 使用辅助函数
```php
<?php

{{ parsedown('## h2') }}
```

Expand Down

0 comments on commit 6c33acb

Please sign in to comment.