MarkdownParser/README.md

35 lines
789 B
Markdown
Raw Normal View History

2013-11-16 08:51:01 +01:00
## Parsedown
2013-07-23 22:32:45 +02:00
2013-11-30 23:10:30 +01:00
Better [Markdown][1] parser for PHP.
2013-07-10 22:22:16 +02:00
2013-11-23 14:58:58 +01:00
***
2013-11-30 23:10:30 +01:00
[home](http://parsedown.org/) · [demo](http://parsedown.org/demo) · [tests](http://parsedown.org/tests/)
2013-11-23 14:58:58 +01:00
***
2013-11-30 23:10:30 +01:00
Features:
2013-11-23 14:58:58 +01:00
2013-11-30 23:10:30 +01:00
* [fast](http://parsedown.org/speed)
* [consistent](http://parsedown.org/consistency)
2013-11-23 14:58:58 +01:00
* [ GitHub Flavored ][2]
* tested in PHP 5.2, 5.3, 5.4 and 5.5
* friendly to international input
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).
### 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/
2013-11-23 14:58:58 +01:00
[2]: https://help.github.com/articles/github-flavored-markdown