mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-02 19:32:35 +02:00
simplify example
This commit is contained in:
@@ -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>
|
||||
```
|
||||
|
Reference in New Issue
Block a user