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

simplify example

This commit is contained in:
Emanuil Rusev 2014-02-21 02:49:59 +02:00
parent 1e8d917f7a
commit 1243fcf3e0

View File

@ -22,10 +22,8 @@ Include `Parsedown.php` or install [the composer package](https://packagist.org/
### Example
```php
$text = 'Hello *Parsedown*!';
``` php
$parsedown = new Parsedown();
$result = Parsedown::instance()->parse($text);
echo $result; # prints: <p>Hello <em>Parsedown</em>!</p>
echo $parsedown->parse('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
```