mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Simpler readme examples
This commit is contained in:
parent
33cf0f0b99
commit
5dc8d1cc39
@ -46,11 +46,15 @@ Install the [composer package] by running the following command:
|
||||
|
||||
## Example
|
||||
|
||||
``` php
|
||||
```php
|
||||
$Parsedown = new Parsedown();
|
||||
|
||||
echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
|
||||
// you can also parse inline markdown only
|
||||
```
|
||||
|
||||
You can also parse inline markdown only:
|
||||
|
||||
```php
|
||||
echo $Parsedown->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user