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