mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
32 lines
812 B
Markdown
32 lines
812 B
Markdown
## Parsedown
|
|
|
|
Better [Markdown](http://en.wikipedia.org/wiki/Markdown) parser for PHP.
|
|
|
|
***
|
|
|
|
[ [demo](http://parsedown.org/demo) ] [ [tests](http://parsedown.org/tests/) ]
|
|
|
|
***
|
|
|
|
### Features
|
|
|
|
* [fast](http://parsedown.org/speed)
|
|
* [consistent](http://parsedown.org/consistency)
|
|
* [GitHub Flavored](https://help.github.com/articles/github-flavored-markdown)
|
|
* friendly to international input
|
|
* [tested](https://travis-ci.org/erusev/parsedown) in PHP 5.2, 5.3, 5.4 and 5.5 as well as in [HHVM](http://www.hhvm.com/)
|
|
|
|
### Installation
|
|
|
|
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
|
|
|
|
### Example
|
|
|
|
```php
|
|
$text = 'Hello **Parsedown**!';
|
|
|
|
$result = Parsedown::instance()->parse($text);
|
|
|
|
echo $result; # prints: <p>Hello <strong>Parsedown</strong>!</p>
|
|
```
|