1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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

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>!
```