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
@ -23,9 +23,7 @@ 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
Block a user