Simpler readme examples

This commit is contained in:
Emanuil Rusev 2018-12-27 23:51:07 +02:00 committed by GitHub
parent 33cf0f0b99
commit 5dc8d1cc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -46,11 +46,15 @@ Install the [composer package] by running the following command:
## Example
``` php
```php
$Parsedown = new Parsedown();
echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
// you can also parse inline markdown only
```
You can also parse inline markdown only:
```php
echo $Parsedown->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!
```