simplify example
This commit is contained in:
parent
1e8d917f7a
commit
1243fcf3e0
|
@ -22,10 +22,8 @@ Include `Parsedown.php` or install [the composer package](https://packagist.org/
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```php
|
``` php
|
||||||
$text = 'Hello *Parsedown*!';
|
$parsedown = new Parsedown();
|
||||||
|
|
||||||
$result = Parsedown::instance()->parse($text);
|
echo $parsedown->parse('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
|
||||||
|
|
||||||
echo $result; # prints: <p>Hello <em>Parsedown</em>!</p>
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue