2013-11-16 09:51:01 +02:00
|
|
|
## Parsedown
|
2013-07-23 23:32:45 +03:00
|
|
|
|
2013-12-15 03:32:34 +02:00
|
|
|
Better [Markdown](http://en.wikipedia.org/wiki/Markdown) parser for PHP.
|
2013-07-10 23:22:16 +03:00
|
|
|
|
2014-04-17 11:22:49 +03:00
|
|
|
- [Demo](http://parsedown.org/demo)
|
|
|
|
- [Tests](http://parsedown.org/tests/)
|
2013-11-23 15:58:58 +02:00
|
|
|
|
2013-12-03 22:49:50 +02:00
|
|
|
### Features
|
2013-11-23 15:58:58 +02:00
|
|
|
|
2014-04-17 11:22:49 +03:00
|
|
|
* [Fast](http://parsedown.org/speed)
|
|
|
|
* [Consistent](http://parsedown.org/consistency)
|
2013-12-03 23:19:50 +02:00
|
|
|
* [GitHub Flavored](https://help.github.com/articles/github-flavored-markdown)
|
2014-04-17 11:22:49 +03:00
|
|
|
* [Tested](https://travis-ci.org/erusev/parsedown) in PHP 5.2, 5.3, 5.4, 5.5, 5.6 and [hhvm](http://www.hhvm.com/)
|
|
|
|
* Extensible
|
2014-05-14 20:07:52 +03:00
|
|
|
* [Markdown Extra extension](https://github.com/erusev/parsedown-extra) <sup>new</sup>
|
2013-07-23 10:36:28 +03:00
|
|
|
|
2013-07-23 23:32:45 +03:00
|
|
|
### Installation
|
|
|
|
|
|
|
|
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
|
|
|
|
|
2013-07-23 23:54:32 +03:00
|
|
|
### Example
|
2013-07-23 23:32:45 +03:00
|
|
|
|
2014-02-21 02:49:59 +02:00
|
|
|
``` php
|
2014-04-17 10:59:35 +03:00
|
|
|
$Parsedown = new Parsedown();
|
2013-07-23 23:32:45 +03:00
|
|
|
|
2014-04-17 10:59:35 +03:00
|
|
|
echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
|
2013-11-13 01:38:29 +02:00
|
|
|
```
|