mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
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
|
||||
|
||||
```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>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user