2013-11-16 11:51:01 +04:00
|
|
|
## Parsedown
|
2013-07-24 00:32:45 +04:00
|
|
|
|
2013-11-16 20:45:13 +04:00
|
|
|
Parsedown is a Markdown parser for PHP. It is fast, consistent and easy to use.
|
2013-07-11 00:22:16 +04:00
|
|
|
|
2013-11-16 20:45:13 +04:00
|
|
|
[Home](http://parsedown.org) · [Demo](http://parsedown.org/explorer/) · [Tests](http://parsedown.org/tests/)
|
2013-07-23 11:36:28 +04:00
|
|
|
|
2013-07-24 00:32:45 +04:00
|
|
|
### Installation
|
|
|
|
|
|
|
|
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
|
|
|
|
|
2013-07-24 00:54:32 +04:00
|
|
|
### Example
|
2013-07-24 00:32:45 +04:00
|
|
|
|
|
|
|
```php
|
|
|
|
$text = 'Hello **Parsedown**!';
|
|
|
|
|
|
|
|
$result = Parsedown::instance()->parse($text);
|
|
|
|
|
|
|
|
echo $result; # prints: <p>Hello <strong>Parsedown</strong>!</p>
|
2013-11-13 03:38:29 +04:00
|
|
|
```
|